|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--springs.context.threads.AgentExecutor
A Springs agent executor.
Field Summary | |
private springs.agent.SpringsAgent |
_agent
|
private boolean |
_isMoving
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
AgentExecutor(springs.agent.SpringsAgent agent,
boolean isMoving)
Constructor. |
Method Summary | |
private void |
executeSchedule()
Executes the tasks registered in the agent's schedule. |
void |
run()
Main method, corresponding to the thread assigned to the agent. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private springs.agent.SpringsAgent _agent
private boolean _isMoving
Constructor Detail |
public AgentExecutor(springs.agent.SpringsAgent agent, boolean isMoving)
agent
- the agent to execute.isMoving
- a boolean indicating whether the agent is moving or not.SpringsAgent
Method Detail |
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void executeSchedule() throws java.lang.Exception
java.lang.Exception
- if there is some problem executing the schedule.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |