agentland.resource.connect
Interface ConnectionMaker
- All Known Implementing Classes:
- ConnectionMakerAgent
- public interface ConnectionMaker
- extends Good
Methods inherited from interface agentland.util.Spy |
tell |
connect
public int connect(AgentID from,
AgentID to)
throws RemoteException
- Connect "from" to "to".
Will look for cheapest path.
- Returns:
- id for connection so it can be released. Use this
id on any further calls.
disconnect
public void disconnect(int id)
throws RemoteException
- kills (resets to 0 cost) the connection with a given id.
connectable
public boolean connectable(AgentID start,
AgentID stop)
throws RemoteException
- tells you whether there exists a connection between a pair of drugs
addEdge
public void addEdge(AgentID from,
String outPort,
AgentID to,
String inPort)
throws RemoteException
addEdge
public void addEdge(String from,
String outPort,
String to,
String inPort)
throws RemoteException