J-Sim v1.2.1-p7 API

drcl.sim.event
Class SEThreadOld

java.lang.Object
  extended byjava.lang.Thread
      extended bydrcl.comp.WorkerThread
          extended bydrcl.sim.event.SEThreadOld
All Implemented Interfaces:
java.lang.Runnable

public class SEThreadOld
extends WorkerThread

See Also:
SESimulatorOld

Field Summary
protected  SESimulatorOld 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
 
Constructor Summary
SEThreadOld()
           
SEThreadOld(java.lang.String name_)
           
 
Method Summary
 java.lang.String _toString()
           
 java.lang.String info(java.lang.String prefix_)
           
protected  void lock(Component host_, java.lang.Object o_)
           
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_)
           
 void sleepFor(double time_)
           
 void sleepUntil(double time_)
           
protected  void unlock(Component host_, java.lang.Object o_, boolean release_)
           
protected  void wait(Component host_, java.lang.Object o_)
           
protected  void yieldToRuntime()
           
 
Methods inherited from class drcl.comp.WorkerThread
_debug, _getName, finishing, getNumEvents, getState, getTime, info, isOrphan, isWaiting, resumeComponent, startComponent, stopComponent, toString, unlock
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aruntime

protected SESimulatorOld aruntime
The worker runtime of this thread.


sleepOn

protected transient java.lang.Object sleepOn
The object that this thread waits on.

Constructor Detail

SEThreadOld

public SEThreadOld()

SEThreadOld

public SEThreadOld(java.lang.String name_)
Method Detail

info

public java.lang.String info(java.lang.String prefix_)
Specified by:
info in class WorkerThread

_toString

public java.lang.String _toString()

run

public void run()
Standard Thread.run().


sleepFor

public final void sleepFor(double time_)
Specified by:
sleepFor in class WorkerThread

sleepUntil

public final void sleepUntil(double time_)
Specified by:
sleepUntil in class WorkerThread

lock

protected final void lock(Component host_,
                          java.lang.Object o_)
Specified by:
lock in class WorkerThread

unlock

protected void unlock(Component host_,
                      java.lang.Object o_,
                      boolean release_)
Specified by:
unlock in class WorkerThread

releaseAllLocks

protected void releaseAllLocks(Component host_)
Specified by:
releaseAllLocks in class WorkerThread

wait

protected final void wait(Component host_,
                          java.lang.Object o_)
Specified by:
wait in class WorkerThread

notify

protected void notify(Component host_,
                      java.lang.Object o_)
Specified by:
notify in class WorkerThread

notifyAll

protected final void notifyAll(Component host_,
                               java.lang.Object o_)
Specified by:
notifyAll in class WorkerThread

yieldToRuntime

protected void yieldToRuntime()
Specified by:
yieldToRuntime in class WorkerThread

setState

protected final void setState(java.lang.String new_)
Overrides:
setState in class WorkerThread

J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~