agentland.device
Interface AbstractDeviceManager

All Superinterfaces:
Agent, Device, DeviceManager, Good, Managed, MultiDevice, Remote, Spy
All Known Subinterfaces:
DrapesManager, LightManager, ProjectorManager
All Known Implementing Classes:
AbstractDeviceManagerAgent

public interface AbstractDeviceManager
extends DeviceManager

An implementation of some of the common functinality for all device managers

See Also:
DeviceManager

Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 void addSecretDevice(Secret s)
          Makes it possible to add new devices by secret -- in case we were spying on the catalog for new agents coming to life.
 Collection getDeviceIDs(String name)
          Returns a vector of agentID's of all agents managed by this manager that can be referenced by the name
 
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
 

Method Detail

addSecretDevice

public void addSecretDevice(Secret s)
                     throws RemoteException
Makes it possible to add new devices by secret -- in case we were spying on the catalog for new agents coming to life.
Parameters:
s - a Secret with an AgentID in details

getDeviceIDs

public Collection getDeviceIDs(String name)
                        throws RemoteException
Returns a vector of agentID's of all agents managed by this manager that can be referenced by the name