|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
de.upb.swtpra05.group03.plugin.WorkerThread
Simulates a message-sending shuttle to demonstrate the plugin. Its not necessary to start a new kernel and run the shuttle.
| Field Summary | |
private ICabSShuttlePlugin |
plugin
No comment provided by developer, please add a comment to improve documentation. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
(package private) |
WorkerThread()
|
| Method Summary | |
private int |
getRandomExecutionState()
Helper method to generate random executionState values |
void |
run()
Main processing method for the WorkerThread object, generates all messages and values, mostly random. |
void |
setPlugin(ICabSShuttlePlugin plugin)
This method sets the plugin instance to which this WorkerThread will deliver all its messages. |
| 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 ICabSShuttlePlugin plugin
| Constructor Detail |
WorkerThread()
| Method Detail |
public void setPlugin(ICabSShuttlePlugin plugin)
plugin - The CompanyShuttlePlugin instancepublic void run()
private int getRandomExecutionState()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||