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

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

Methods

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