agentland.device.drapes
Class DrapesManagerAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.device.DeviceAgent
|
+--agentland.device.MultiDeviceAgent
|
+--agentland.device.AbstractDeviceManagerAgent
|
+--agentland.device.drapes.DrapesManagerAgent
- All Implemented Interfaces:
- AbstractDeviceManager, Agent, Device, DeviceManager, Drapes, DrapesManager, Good, Managed, MetagluePrimitives, MultiDevice, Remote, Serializable, Spy
- public class DrapesManagerAgent
- extends AbstractDeviceManagerAgent
- implements DrapesManager
- See Also:
- Serialized Form
| Methods inherited from class agentland.device.AbstractDeviceManagerAgent |
addDevice, addSecretDevice, addSpies, callMethod, callMethod, callMethod, devices, devices, getAllAgentIDs, getAllNames, getDeviceIDs, getDevices, getPresent, registerKnown, removeDevice, setUpNaming |
| Methods inherited from class agentland.device.DeviceAgent |
addName, createStateChangeNotification, ensureState, getDefaultStateName, getName, getNames, getState, getState, getStateNames, hasName, quietException, resetAllStates, resetName, resetState, resetState, setDefaultStateName, setName, setState, throwException, updateState, updateState, updateState, updateState, updateState, updateState, updateState, updateState |
| Methods inherited from class agentland.resource.ManagedAgent |
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank |
| Methods inherited from class agentland.util.GoodAgent |
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell |
| Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou |
| 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.util.Spy |
tell |
DrapesManagerAgent
public DrapesManagerAgent()
throws RemoteException
getWatchedOccupations
protected String[] getWatchedOccupations()
- Description copied from class:
AbstractDeviceManagerAgent
- This isn't really used yet. In theory, you should override this
method so that it returns an array of occupations that your
manager manages. Than, if you want, all agents of this
occupation would be automatically pulled in to your manager
when they are started. But, as I said, this has not been
implemented.
- Overrides:
getWatchedOccupations in class AbstractDeviceManagerAgent
getDefaultNames
protected String[] getDefaultNames()
- Description copied from class:
DeviceAgent
- Override this method to set the default names for your device;
this method is only called if we cannot defrost names set
previously
- Overrides:
getDefaultNames in class DeviceAgent
- Following copied from class:
agentland.device.DeviceAgent
- Returns:
- a
Vector value
open
public boolean open(String name)
throws RemoteException
- Specified by:
open in interface DrapesManager
close
public boolean close(String name)
throws RemoteException
- Specified by:
close in interface DrapesManager
isOpen
public UncertainValue isOpen(String name)
throws RemoteException
- Specified by:
isOpen in interface DrapesManager
open
public boolean open()
throws RemoteException
- Specified by:
open in interface Drapes
close
public boolean close()
throws RemoteException
- Specified by:
close in interface Drapes
isOpen
public UncertainValue isOpen()
throws RemoteException
- Specified by:
isOpen in interface Drapes