drcl.comp
Class AWorkerThread
java.lang.Object
|
+--java.lang.Thread
|
+--drcl.comp.WorkerThread
|
+--drcl.comp.AWorkerThread
- All Implemented Interfaces:
- java.lang.Runnable
- public class AWorkerThread
- extends WorkerThread
- See Also:
ARuntime
|
Field Summary |
protected ARuntime |
aruntime
The worker runtime of this thread. |
protected java.lang.Object |
sleepOn
The object that this thread waits on. |
| Fields inherited from class drcl.comp.WorkerThread |
currentContext, mainContext, returnPort, runtime, state, State_ACTIVE, State_FINISHING, State_INACTIVE, State_SLEEPING, State_WAITING, totalNumEvents |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
|
Method Summary |
protected void |
__sleepOn(java.lang.Object sleepOn_,
java.lang.String prestate_,
java.lang.String poststate_)
|
java.lang.String |
_toString()
|
protected void |
changeCurrentContext(Port port_,
java.lang.Object data_,
java.lang.String state_)
|
java.lang.String |
info(java.lang.String prefix_)
|
boolean |
isReadyForNextTask()
|
void |
kill()
Let go of the thread from sleep in idle. |
protected void |
lock(Component host_,
java.lang.Object o_)
|
java.lang.String |
locks()
|
protected void |
notify(Component host_,
java.lang.Object o_)
|
protected void |
notifyAll(Component host_,
java.lang.Object o_)
|
protected void |
releaseAllLocks(Component host_)
|
void |
run()
Standard Thread.run(). |
protected void |
setState(java.lang.String new_)
|
protected void |
sleepFor(double time_)
|
protected void |
sleepUntil(double time_)
|
void |
start()
Delay the starting until the time specified later(second). |
protected void |
unlock(Component host_,
java.lang.Object o_)
|
protected void |
unlock(Component host_,
java.lang.Object o_,
boolean release_)
|
protected void |
wait(Component host_,
java.lang.Object o_)
|
| Methods inherited from class drcl.comp.WorkerThread |
_debug, _getName, finishing, getNumEvents, getState, getTime, info, isOrphan, isWaiting, normalProcess, resumeComponent, startComponent, stopComponent, toString |
| 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, stop, stop, suspend, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
aruntime
protected ARuntime aruntime
- The worker runtime of this thread.
sleepOn
protected transient java.lang.Object sleepOn
- The object that this thread waits on.
AWorkerThread
public AWorkerThread()
AWorkerThread
public AWorkerThread(java.lang.ThreadGroup group_,
java.lang.String name_)
info
public java.lang.String info(java.lang.String prefix_)
- Overrides:
info in class WorkerThread
_toString
public java.lang.String _toString()
start
public void start()
- Delay the starting until the time specified later(second).
- Overrides:
start in class java.lang.Thread
__sleepOn
protected final void __sleepOn(java.lang.Object sleepOn_,
java.lang.String prestate_,
java.lang.String poststate_)
run
public void run()
- Standard Thread.run().
- Overrides:
run in class java.lang.Thread
sleepFor
protected final void sleepFor(double time_)
- Overrides:
sleepFor in class WorkerThread
sleepUntil
protected final void sleepUntil(double time_)
- Overrides:
sleepUntil in class WorkerThread
kill
public void kill()
- Let go of the thread from sleep in idle.
changeCurrentContext
protected void changeCurrentContext(Port port_,
java.lang.Object data_,
java.lang.String state_)
isReadyForNextTask
public final boolean isReadyForNextTask()
locks
public final java.lang.String locks()
lock
protected final void lock(Component host_,
java.lang.Object o_)
- Overrides:
lock in class WorkerThread
unlock
protected final void unlock(Component host_,
java.lang.Object o_)
- Overrides:
unlock in class WorkerThread
unlock
protected void unlock(Component host_,
java.lang.Object o_,
boolean release_)
- Overrides:
unlock in class WorkerThread
releaseAllLocks
protected final void releaseAllLocks(Component host_)
- Overrides:
releaseAllLocks in class WorkerThread
wait
protected final void wait(Component host_,
java.lang.Object o_)
- Overrides:
wait in class WorkerThread
notify
protected final void notify(Component host_,
java.lang.Object o_)
- Overrides:
notify in class WorkerThread
notifyAll
protected final void notifyAll(Component host_,
java.lang.Object o_)
- Overrides:
notifyAll in class WorkerThread
setState
protected final void setState(java.lang.String new_)
- Overrides:
setState in class WorkerThread
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~