|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.agent.Schedule
The schedule of an agent.
Field Summary | |
private java.util.Vector |
_scheduleEntries
|
Constructor Summary | |
Schedule()
Constructor. |
Method Summary | |
void |
addTask(java.lang.String method)
Add a task consisting of calling a certain method. |
void |
addTask(java.lang.String targetURL,
int targetPort)
Adds a task to travel to another context. |
void |
addTask(java.lang.String targetURL,
int targetPort,
java.lang.String callbackMethod)
Adds a task to travel to another context. |
void |
addTask(java.lang.String targetURL,
int targetPort,
java.lang.String callbackMethod,
java.lang.Object[] args)
Adds a task to travel to another context. |
void |
addTask(java.lang.String method,
java.lang.Object[] args)
Add a task consisting of calling a certain method. |
boolean |
moreTasks()
Checks if the agent has more tasks in its schedule. |
springs.agent.Task |
takeNextTask()
Gets the next task, and removes it from the list of pending tasks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector _scheduleEntries
Constructor Detail |
public Schedule()
Method Detail |
public void addTask(java.lang.String targetURL, int targetPort)
targetURL
- the target URL.targetPort
- the target port.String
public void addTask(java.lang.String targetURL, int targetPort, java.lang.String callbackMethod)
targetURL
- the target URL.targetPort
- the target port.callbackMethod
- the callback method.String
public void addTask(java.lang.String targetURL, int targetPort, java.lang.String callbackMethod, java.lang.Object[] args)
targetURL
- the target URL.targetPort
- the target port.callbackMethod
- the callback method.args
- the arguments for the callback method.String
,
Object
public void addTask(java.lang.String method)
method
- the method.String
public void addTask(java.lang.String method, java.lang.Object[] args)
method
- the method.args
- the arguments for the method.String
,
Object
public boolean moreTasks()
public springs.agent.Task takeNextTask()
Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |