agentland.resource.connect
Class ConnectionEditorEHA
java.lang.Object
|
+--agentland.resource.connect.ConnectionEditorEHA
- public class ConnectionEditorEHA
- extends Object
- implements ExceptionHandler, ConnectionEditor, ConnectionMaker
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ConnectionEditorEHA
public ConnectionEditorEHA(MetagluePrimitives ap,
AgentID agentID,
Catalog c)
throws RemoteException
getAgent
public Agent getAgent()
- Description copied from interface: ExceptionHandler
- get the internal stub used.
(Used for resource management interception)
- Specified by:
- getAgent in interface ExceptionHandler
setAgent
public void setAgent(Agent a)
- Description copied from interface: ExceptionHandler
- set the internal stub used to passed agent.
(Used for resource management interception)
- Specified by:
- setAgent in interface ExceptionHandler
getAgtID
public AgentID getAgtID()
- Description copied from interface: ExceptionHandler
- get the internal agentID used.
(Used for resource management interception)
- Specified by:
- getAgtID in interface ExceptionHandler
setAgtID
public void setAgtID(AgentID a)
- Description copied from interface: ExceptionHandler
- set the internal agentID used to passed agent.
(Used for resource management interception)
- Specified by:
- setAgtID in interface ExceptionHandler
instantiate
public void instantiate(Agent a)
- Specified by:
- instantiate in interface ExceptionHandler
replaceExceptionHandler
public void replaceExceptionHandler(AgentExceptionHandler r)
- Specified by:
- replaceExceptionHandler in interface ExceptionHandler
tell
public void tell(Secret param0)
throws RemoteException
- Description copied from interface: Spy
- This is called if the Agent is to recieve a particular
secret.
addMonitor
public void addMonitor(Spy param0)
throws RemoteException
- Description copied from interface: Agent
- Add a log monitor that gets all the screen output.
alive
public boolean alive()
throws RemoteException
getAgentID
public AgentID getAgentID()
getMetaglueAgentID
public AgentID getMetaglueAgentID()
throws RemoteException
shutdown
public void shutdown()
throws RemoteException
startup
public void startup()
throws RemoteException
whereAreYou
public InetAddress whereAreYou()
throws RemoteException
- Description copied from interface: Agent
- Returns the InetAddress of the machine where the agent is
running
getHistory
public Vector getHistory()
throws RemoteException
getHistoryElement
public String getHistoryElement(int param0)
throws RemoteException
resetHistory
public void resetHistory()
throws RemoteException
addEdge
public void addEdge(String param0,
String param1,
String param2,
String param3)
throws RemoteException
- Specified by:
- addEdge in interface ConnectionMaker
addEdge
public void addEdge(AgentID param0,
String param1,
AgentID param2,
String param3)
throws RemoteException
- Specified by:
- addEdge in interface ConnectionMaker
connect
public int connect(AgentID param0,
AgentID param1)
throws RemoteException
- Description copied from interface: ConnectionMaker
- Connect "from" to "to".
Will look for cheapest path.
- Specified by:
- connect in interface ConnectionMaker
- Tags copied from interface: ConnectionMaker
- Returns:
- id for connection so it can be released. Use this
id on any further calls.
connectable
public boolean connectable(AgentID param0,
AgentID param1)
throws RemoteException
- Description copied from interface: ConnectionMaker
- tells you whether there exists a connection between a pair of drugs
- Specified by:
- connectable in interface ConnectionMaker
disconnect
public void disconnect(int param0)
throws RemoteException
- Description copied from interface: ConnectionMaker
- kills (resets to 0 cost) the connection with a given id.
- Specified by:
- disconnect in interface ConnectionMaker
getEdges
public Vector getEdges()
throws RemoteException
- Specified by:
- getEdges in interface ConnectionEditor
getEdgesFrom
public Vector getEdgesFrom(String param0)
throws RemoteException
- Specified by:
- getEdgesFrom in interface ConnectionEditor
getEdgesTo
public Vector getEdgesTo(String param0)
throws RemoteException
- Specified by:
- getEdgesTo in interface ConnectionEditor
getNodes
public Vector getNodes()
throws RemoteException
- Specified by:
- getNodes in interface ConnectionEditor
listEdges
public void listEdges()
throws RemoteException
- Specified by:
- listEdges in interface ConnectionEditor
listNodes
public void listNodes()
throws RemoteException
- Specified by:
- listNodes in interface ConnectionEditor