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

Method Index

 o addListener(LightEventListener)
This method adds a listener to the events of this light
 o brighten(int)
This method brightens the light by reln
 o dim(int)
This method dims the light by reln
 o getCurrentLevel()
This method returns the current level of this light
 o isFaulty()
This method returns whether this light is faulty or not
 o isOn()
This method returns whether the light is on
 o removeListener(LightEventListener)
This method removes a listener of the events of this light
 o setCurrentLevel(float)
This method sets the level of the light
 o turnOff()
This method turns this light off.
 o turnOn()
This method turns this light on.

Methods

 o turnOn
 public abstract void turnOn() throws RemoteException
This method turns this light on.

Throws: RemoteException
if the remote communication fails
 o turnOff
 public abstract void turnOff() throws RemoteException
This method turns this light off.

Throws: RemoteException
if the remote communication fails
 o 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
 o 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
 o 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
 o 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
 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 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
 o 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
 o 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