agentland.device
Interface DeviceManager

All Superinterfaces:
Agent, Device, Good, Managed, MultiDevice, Remote, Spy
All Known Subinterfaces:
AbstractDeviceManager, DrapesManager, LightManager, ProjectorManager

public interface DeviceManager
extends MultiDevice

Basic interface for all agents that control a number of other device agents.

See Also:
MultiDevice

Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 boolean addDevice(AgentID aid)
          Add a specific device to the list of controlled devices
 Vector getDevices()
          Returns a list of all devices managed by this manager
 boolean removeDevice(AgentID aid)
          Remove the device from the list of controlled devices
 
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
 

Method Detail

addDevice

public boolean addDevice(AgentID aid)
                  throws RemoteException
Add a specific device to the list of controlled devices
Parameters:
aid - the agent id of the device
Returns:
true if things went well (even if the device is already there); false if something went wrong (e.g. we could not find the device anywhere)

removeDevice

public boolean removeDevice(AgentID aid)
                     throws RemoteException
Remove the device from the list of controlled devices
Returns:
true if the device was there and things went well; false otherwise

getDevices

public Vector getDevices()
                  throws RemoteException
Returns a list of all devices managed by this manager