All Packages Class Hierarchy This Package Previous Next Index
Interface edu.cmu.owl.bo.control.server.SensorController
- public interface interface SensorController
This interface represents a controllable sensor. It is with this class
that other subsystems may control or query the sensor. This is a remote interface.
- Version:
- 1.0
- See Also:
- ControlServerInterface
-
addListener(SensorEventListener)
- This method adds a listener to the events of this sensor
-
getCurrentLevel()
- This method returns the current level of the Sensor
-
isFaulty()
- This method returns whether this light is faulty or not
-
removeListener(SensorEventListener)
- This method removes a listener of the events of this sensor
getCurrentLevel
public abstract float getCurrentLevel() throws RemoteException
- This method returns the current level of the Sensor
- Returns:
- the current level of this sensor
- Throws: RemoteException
- if the remote communication fails
isFaulty
public abstract boolean isFaulty() throws RemoteException
- This method returns whether this light is faulty or not
- Returns:
- whether this light is faulty or not
- Throws: RemoteException
- if the remote communication fails
addListener
public abstract void addListener(SensorEventListener listener) throws RemoteException
- This method adds a listener to the events of this sensor
- Parameters:
- listener - the client implementation of the listener
- Throws: RemoteException
- if the remote communication fails
removeListener
public abstract void removeListener(SensorEventListener listener) throws RemoteException
- This method removes a listener of the events of this sensor
- Parameters:
- listener - the client implementation of the listener to remove
- Throws: RemoteException
- if the remote communication fails
All Packages Class Hierarchy This Package Previous Next Index