|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
javax.realtime.RealtimeThread
javax.realtime.test.traffic.Car
Field Summary | |
static int |
defaultPriority
|
Fields inherited from class javax.realtime.RealtimeThread |
activePhaseToDo, currentEventNotice, currentPriority, endTime, lastPriorityChangeNanos, lastWaitStart, logic, memoryArea, memoryParameters, processingGroup, releaseParameters, resourcesHeld, scheduler, scheduling, startAbsoluteMillis, started, startTime, terminated, timeWeightedPriority, waitingForResource, waitTime |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Car(java.lang.String choiceMode,
Intersection intersection,
java.util.Random myRandom)
|
|
Car(java.lang.String choiceMode,
int priority,
java.lang.String direction,
java.lang.String turn,
RelativeTime cost,
RelativeTime deadline,
Intersection intersection,
java.util.Random myRandom)
|
Method Summary | |
void |
body()
Where all the application work gets done. |
void |
notifyPriorityChange()
|
java.lang.String |
toString()
Construct a string representation of this thread. |
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 |
public static int defaultPriority
Constructor Detail |
public Car(java.lang.String choiceMode, Intersection intersection, java.util.Random myRandom)
public Car(java.lang.String choiceMode, int priority, java.lang.String direction, java.lang.String turn, RelativeTime cost, RelativeTime deadline, Intersection intersection, java.util.Random myRandom)
Method Detail |
public void body() throws java.lang.InterruptedException, ThreadTerminatedException
RealtimeThread
Thread.run()
,
but that method is used as a wrapper
RealtimeThread
to initialize, passivate and clean up this
RealtimeThread
. Must be
overridden in subclass.
body
in class RealtimeThread
java.lang.InterruptedException
- thrown if a wait()
is
interrupted
ThreadTerminatedException
- thrown if a simulation shutdown occurs
while this thread has not yet terminatedpublic void notifyPriorityChange()
public java.lang.String toString()
RealtimeThread
toString
in class RealtimeThread
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |