All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.bo.control.server.LuxmateSensorControllerImpl
edu.cmu.owl.bo.control.server.ControllableObject
|
+----edu.cmu.owl.bo.control.server.LuxmateSensorControllerImpl
- public class LuxmateSensorControllerImpl
- extends ControllableObject
- implements SensorController
This class is the Luxmate Implementation of a Light Fixture. This class needs to implement
a listener for luxmate wrapper in order to notify for events
- Version:
- 1.0
-
LuxmateSensorControllerImpl(LuxmateSensor)
- This constructor instantiates an object of this class.
-
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
LuxmateSensorControllerImpl
public LuxmateSensorControllerImpl(LuxmateSensor peer) throws RemoteException
- This constructor instantiates an object of this class.
- Parameters:
- peer - the OwlObject peer for this light
- Throws: RemoteException
- if the remote communication fails
getCurrentLevel
public 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 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 synchronized 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 synchronized 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