|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
the base remote interface for all agents. methods in this interface and its children are visible over the network. all methods must throw remoteexception.
Method Summary | |
void |
blockUntilReady()
m block if this agent is not yet ready, this method will release the caller when this agent has become ready |
void |
configure(java.lang.Object o,
Description desc)
Tells the agent to configure itself from the DOM Node doc. |
boolean |
connectTo(Agent otherAgent)
connects this agent to some other agent. |
void |
diePlease()
ask this agent to politely die |
void |
disconnectFrom(Agent otherAgent)
disconnects this agent from the specified other agent. |
void |
disconnectFromAll()
disconnects this agent from all agents. |
java.util.Vector |
getActionCommands()
get a list of strings which are the labels for this agent's command menu |
CellAddress |
getAddress()
return what cell address this agent is on |
RemoteCell |
getCell()
find out which server the agent lives on. |
Description |
getDescription()
get the semantic description of this agent. |
SerializableImage |
getIcon()
get the icon for this agent. |
java.lang.String |
getName()
get a name for this agent. |
boolean |
invokeActionCommand(java.lang.String com)
ask this agent to invoke a command from the agent's command menu |
boolean |
isReady()
see if this agent is ready for business |
java.util.Vector |
listAllIncomingConnections()
ask this agent for all its incoming connections |
java.util.Vector |
listAllOutgoingConnections()
ask this agent for all its outgoing connections |
Methods inherited from interface net.hivecell.hive.description.RemoteDescribable |
setDescription |
Method Detail |
public RemoteCell getCell() throws java.rmi.RemoteException
public CellAddress getAddress() throws java.rmi.RemoteException
public boolean isReady() throws java.rmi.RemoteException
public void blockUntilReady() throws java.rmi.RemoteException
public void diePlease() throws java.rmi.RemoteException
public boolean connectTo(Agent otherAgent) throws java.rmi.RemoteException
otherAgent
- reference to the agent to connect topublic void disconnectFromAll() throws java.rmi.RemoteException
public void disconnectFrom(Agent otherAgent) throws java.rmi.RemoteException
otherAgent
- the agent that we are going to disappear frompublic java.util.Vector listAllIncomingConnections() throws java.rmi.RemoteException
public java.util.Vector listAllOutgoingConnections() throws java.rmi.RemoteException
public Description getDescription() throws java.rmi.RemoteException
public SerializableImage getIcon() throws java.rmi.RemoteException
public java.lang.String getName() throws java.rmi.RemoteException
public void configure(java.lang.Object o, Description desc) throws java.rmi.RemoteException
o
- the object that asked to configure the agentdoc
- The DOM Document (root node)public java.util.Vector getActionCommands() throws java.rmi.RemoteException
public boolean invokeActionCommand(java.lang.String com) throws java.rmi.RemoteException
com
- a string representing the command that we wish to have called
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |