|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--DynamicLoaderThread
DynamicLoaderThread
This thread load RobotProgram and runs them.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DynamicLoaderThread(java.lang.String programName,
Robot mainRobotProgram)
programName - is the name of the program to be run. |
Method Summary | |
void |
loadingRobotProgram(java.lang.String programName)
it loads the robotProgram called programName. |
void |
paint(java.awt.Graphics g)
paint the robotProgram |
void |
repaint()
repaint and sleep 1.5 sec. |
void |
run()
loads the program. |
void |
setWorld(BasicWorld world)
set the world to the robot program. |
void |
update(java.util.Observable o,
java.lang.Object arg)
activate when one of the basicRobot of the robotProgram done something. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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 |
Constructor Detail |
public DynamicLoaderThread(java.lang.String programName, Robot mainRobotProgram)
Method Detail |
public void run()
run
in class java.lang.Thread
public void repaint()
public void paint(java.awt.Graphics g)
public void loadingRobotProgram(java.lang.String programName)
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void setWorld(BasicWorld world)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |