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

Constructor Index

 o LuxmateSensorControllerImpl(LuxmateSensor)
This constructor instantiates an object of this class.

Method Index

 o addListener(SensorEventListener)
This method adds a listener to the events of this sensor
 o getCurrentLevel()
This method returns the current level of the Sensor
 o isFaulty()
This method returns whether this light is faulty or not
 o removeListener(SensorEventListener)
This method removes a listener of the events of this sensor

Constructors

 o 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

Methods

 o 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
 o 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
 o 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
 o 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