All Packages Class Hierarchy This Package Previous Next Index
Interface edu.cmu.owl.bo.control.server.LightController
- public interface interface LightController
This interface represents a controllable light. It is with this class
that other subsystems may control lights. This is a remote interface.
- Version:
- 1.0
- See Also:
- ControlServerInterface
-
addListener(LightEventListener)
- This method adds a listener to the events of this light
-
brighten(int)
- This method brightens the light by reln
-
dim(int)
- This method dims the light by reln
-
getCurrentLevel()
- This method returns the current level of this light
-
isFaulty()
- This method returns whether this light is faulty or not
-
isOn()
- This method returns whether the light is on
-
removeListener(LightEventListener)
- This method removes a listener of the events of this light
-
setCurrentLevel(float)
- This method sets the level of the light
-
turnOff()
- This method turns this light off.
-
turnOn()
- This method turns this light on.
turnOn
public abstract void turnOn() throws RemoteException
- This method turns this light on.
- Throws: RemoteException
- if the remote communication fails
turnOff
public abstract void turnOff() throws RemoteException
- This method turns this light off.
- Throws: RemoteException
- if the remote communication fails
dim
public abstract void dim(int reln) throws RemoteException
- This method dims the light by reln
- Parameters:
- reln - the value by which to dim the lights
- Throws: RemoteException
- if the remote communication fails
brighten
public abstract void brighten(int reln) throws RemoteException
- This method brightens the light by reln
- Parameters:
- reln - the value by which to dim the lights
- Throws: RemoteException
- if the remote communication fails
isOn
public abstract boolean isOn() throws RemoteException
- This method returns whether the light is on
- Returns:
- whether the light is on or not
- Throws: RemoteException
- if the remote communication fails
getCurrentLevel
public abstract float getCurrentLevel() throws RemoteException
- This method returns the current level of this light
- Returns:
- the current level of this light
- 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
setCurrentLevel
public abstract void setCurrentLevel(float level) throws RemoteException
- This method sets the level of the light
- Parameters:
- level - the desired level to which to set the light
- Throws: RemoteException
- if the remote communication fails
addListener
public abstract void addListener(LightEventListener listener) throws RemoteException
- This method adds a listener to the events of this light
- Parameters:
- listener - the client implementation of the listener
- Throws: RemoteException
- if the remote communication fails
removeListener
public abstract void removeListener(LightEventListener listener) throws RemoteException
- This method removes a listener of the events of this light
- 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