springs.context.threads
Class AgentCreatorThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--springs.context.threads.AgentCreatorThread
All Implemented Interfaces:
java.lang.Runnable

public class AgentCreatorThread
extends java.lang.Thread

A thread that creates an agent in a context.

Author:
Sergio Ilarri Artigas

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
AgentCreatorThread(springs.agent.SpringsAgent agent, boolean isMoving)
           
 
Method Summary
 void createAgent()
           
 void run()
           
 
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

_agent

private springs.agent.SpringsAgent _agent

_isMoving

private boolean _isMoving
Constructor Detail

AgentCreatorThread

public AgentCreatorThread(springs.agent.SpringsAgent agent,
                          boolean isMoving)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

createAgent

public void createAgent()
                 throws CreationException,
                        AlreadyExistingAgentException
CreationException
AlreadyExistingAgentException