agentland.resource.connect
Class ConnectionMonitorAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.GoodAgent
|
+--agentland.resource.ManagedAgent
|
+--agentland.resource.connect.ConnectionMonitorAgent
- All Implemented Interfaces:
- Agent, ConnectionMonitor, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy
- public class ConnectionMonitorAgent
- extends ManagedAgent
- implements ConnectionMonitor
Monitor and save connection state.
- See Also:
- Serialized Form
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, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
Methods inherited from interface agentland.util.Spy |
tell |
ConnectionMonitorAgent
public ConnectionMonitorAgent()
throws RemoteException
isConnected
public boolean isConnected(String from,
String to)
throws RemoteException
- Description copied from interface:
ConnectionMonitor
- Is the given agent from connected to the agent to at this
time.
- Specified by:
isConnected
in interface ConnectionMonitor
getConnections
public Vector getConnections()
throws RemoteException
- Return list of all current connections.
- Specified by:
getConnections
in interface ConnectionMonitor
saveState
public void saveState(String name)
throws RemoteException
- Save the state of the world under the passed name.
- Specified by:
saveState
in interface ConnectionMonitor
loadState
public void loadState(String name)
throws RemoteException
- Load the state of the word as listed under name. Overwrite
as needed the current state of the world.
- Specified by:
loadState
in interface ConnectionMonitor