|
ADK CVS | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttryllian.afc.agent.AbstractAgent
tryllian.afc.standalone.StandaloneAgent
Agent that can be run without launching an ARE. Since a StandaloneAgent
cannot use an ARE, every StandaloneAgent needs its own
Messenger to send messages.
Also, all operations that really need ARE support cannot be performed;
for example, it cannot move.
Creating a StandaloneAgent with the default constructor will result in a
StandaloneMessenger being created.
Not supported by this agent
JNDIResolveTask
| Constructor Summary | |
StandaloneAgent()
|
|
StandaloneAgent(tryllian.are.messenger.Messenger messenger)
Creates a new agent. |
|
| Method Summary | |
void |
addMoveListener(MoveListener listener)
Registers a listener to move events. |
protected void |
agentStarted()
Override this method to perform one-time initializations. |
protected tryllian.are.messenger.Messenger |
createDefaultMessenger()
Returns a new messenger that is used when this class is created by way of its default constructor, and specifying no (therefore using all default) property values. |
Directory |
getDirectory()
Returns the Directory that can be used to get addressing information. |
java.util.Date |
getDNACreationDate()
Returns the creation date of the DNA file. |
protected MessageDispatcher |
getMessageDispatcher()
|
MessageFactory |
getMessageFactory()
Returns the message factory. |
javax.naming.Context |
getNamingContext()
Returns the JNDI naming context. |
void |
removeMoveListener(MoveListener listener)
Deregisters a listener to move events. |
void |
requestMove(AddressURI location)
Requests a move to another location. |
void |
requestMove(java.lang.String location)
Requests a move to another location. |
void |
scheduleRoutine(StoppableRunnable target)
Schedules a thread for execution. |
void |
start()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandaloneAgent()
public StandaloneAgent(tryllian.are.messenger.Messenger messenger)
| Method Detail |
protected tryllian.are.messenger.Messenger createDefaultMessenger()
protected MessageDispatcher getMessageDispatcher()
getMessageDispatcher in class AbstractAgentpublic void start()
protected void agentStarted()
super.agentStarted().
public void addMoveListener(MoveListener listener)
AgentContext
public javax.naming.Context getNamingContext()
throws javax.naming.NamingException
AgentContext
javax.naming.NamingExceptionpublic MessageFactory getMessageFactory()
AgentContext
public Directory getDirectory()
AgentContext
public void removeMoveListener(MoveListener listener)
AgentContext
public void requestMove(AddressURI location)
AgentContext
location - the location to move to (only the habitat part is used).public void requestMove(java.lang.String location)
AgentContext
location - the name of the habitat to move to.AgentContext.addMoveListener(tryllian.afc.task.MoveListener)public java.util.Date getDNACreationDate()
AgentContext
public void scheduleRoutine(StoppableRunnable target)
AgentContext
target - a Runnable with stop() method.
|
Copyright 2005, Tryllian Solutions B.V. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||