|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for a context manager. Performs the creation of agents and can be contacted remotely.
Method Summary | |
void |
addContext(springs.context.ContextAddress context)
Adds a context to the list of contexts in the system. |
void |
createAgent(springs.agent.SpringsAgent agent,
boolean isMoving)
Creates an agent. |
springs.access.AgentReference |
getReference(java.lang.String agentName,
springs.context.ContextAddress addressPetitioner,
boolean addAsObserver)
Obtains a reference to the given agent. |
int |
ping()
Pings the context. |
void |
receiveContexts(java.util.Hashtable contexts)
Receives information about the contexts in the system. |
void |
removeContext(java.lang.String cn)
Removes a context from the list of contexts in the system. |
void |
updateReferences(java.util.Vector referenceUpdates)
Receives an update of references. |
Method Detail |
public void createAgent(springs.agent.SpringsAgent agent, boolean isMoving) throws CreationException, java.rmi.RemoteException
agent
- the agent.isMoving
- a boolean indicating if the agent is sent because of a movement from another
context.
CreationException,RemoteException
- if error.
CreationException
java.rmi.RemoteException
SpringsAgent
,
String
,
Vector
,
CreationException
,
RemoteException
public springs.access.AgentReference getReference(java.lang.String agentName, springs.context.ContextAddress addressPetitioner, boolean addAsObserver) throws AgentNotFoundException, java.rmi.RemoteException
agentName
- the name of the agent.addressPetitioner
- the address of the context that requests the reference.addAsObserver
- a boolean indicating whether the agent must be added as an observer.
AgentNotFoundException,RemoteException
- if error.
AgentNotFoundException
java.rmi.RemoteException
AgentReference
,
String
,
ContextAddress
,
AgentNotFoundException
,
RemoteException
public void receiveContexts(java.util.Hashtable contexts) throws java.rmi.RemoteException
contexts
- a table consisting of pairs java.rmi.RemoteException
Hashtable
,
RemoteException
public void removeContext(java.lang.String cn) throws java.rmi.RemoteException
cn
- the name of the context.
java.rmi.RemoteException
String
,
RemoteException
public void addContext(springs.context.ContextAddress context) throws java.rmi.RemoteException
context
- the context.
java.rmi.RemoteException
ContextAddress
,
RemoteException
public int ping() throws java.rmi.RemoteException
java.rmi.RemoteException
RemoteException
public void updateReferences(java.util.Vector referenceUpdates) throws java.rmi.RemoteException
java.rmi.RemoteException
Vector
,
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |