agentland.device.light
Interface LightManager

All Superinterfaces:
AbstractDeviceManager, Agent, Device, DeviceManager, DimmableLight, Good, Light, Managed, MultiDevice, Remote, Spy
All Known Implementing Classes:
LightManagerAgent

public interface LightManager
extends AbstractDeviceManager, DimmableLight


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 boolean brighten(String name, int delta)
           
 boolean dim(String name, int delta)
           
 UncertainValue isOn(String name)
           
 UncertainValue level(String name)
           
 boolean setLevel(String name, int level)
           
 boolean turnOff(String name)
           
 boolean turnOn(String name)
           
 
Methods inherited from interface agentland.device.AbstractDeviceManager
addSecretDevice, getDeviceIDs
 
Methods inherited from interface agentland.device.DeviceManager
addDevice, getDevices, removeDevice
 
Methods inherited from interface agentland.device.MultiDevice
addManagedGrammar, getNameResolver, removeManagedGrammar
 
Methods inherited from interface agentland.device.Device
addName, getName, getNames, getState, getState, getStateNames, hasName, resetAllStates, resetName, resetState, resetState, setName, setState
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 
Methods inherited from interface agentland.device.light.DimmableLight
brighten, dim, level, setLevel
 
Methods inherited from interface agentland.device.light.Light
isOn, turnOff, turnOn
 

Method Detail

turnOn

public boolean turnOn(String name)
               throws RemoteException

turnOff

public boolean turnOff(String name)
                throws RemoteException

isOn

public UncertainValue isOn(String name)
                    throws RemoteException

setLevel

public boolean setLevel(String name,
                        int level)
                 throws RemoteException

dim

public boolean dim(String name,
                   int delta)
            throws RemoteException

brighten

public boolean brighten(String name,
                        int delta)
                 throws RemoteException

level

public UncertainValue level(String name)
                     throws RemoteException