|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--javax.realtime.RealtimeThread
|
+--util.RTWorkerThread
RTWorkerThread.java
An adapter class for RealtimeThread that
maintains the same API as WorkerThread
WorkerThread| Nested Class Summary | |
protected static class |
RTWorkerThread.OverrunHandler
|
| Field Summary | |
protected long |
cost
The duration in milliseconds that it takes for the logic to execute. |
protected static Runnable |
DEFAULT_OVERRUN_LOGIC
The default logic that will be executed if the period is overrun. |
protected boolean |
feasible
Whether this thread is feasible to execute given its current period and cost. |
protected Runnable |
logic
The logic is the runnable that is executed once every period. |
protected Runnable |
overrunLogic
The logic that will be run if the execution time exceeds the period. |
protected long |
period
The specified time interval in which the logic is executed once. |
private static boolean |
SHOW_FEASIBILITY
Debug flag for showing feasibility |
| Fields inherited from class javax.realtime.RealtimeThread |
deadlineMissHandler, eligibilityParam, groupParam, hasMissedDeadline, hasMissHandlers, hasOverrun, hasStarted, hasStartedTimer, isPeriodic, memoryParam, missCondition, overrunHandler, periodExpired, pipeID_, releaseParam, scheduler, schedulingParam, scopeStack, timeoutHandler_, waitingForNextPeriod |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
RTWorkerThread(Runnable logic,
long cost,
long period)
|
|
RTWorkerThread(Runnable logic,
long cost,
long period,
Runnable overrunLogic)
|
|
| Method Summary | |
void |
cease()
Stops the execution of the Ceaseable. |
long |
getPeriod()
Returns the time in milliseconds alloted for execution of the logic. |
boolean |
isFeasible()
Returns whether this RealtimeThread is capable of meeting hard real-time deadlines given the system resources. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.Ceaseable |
join |
| Field Detail |
protected static final Runnable DEFAULT_OVERRUN_LOGIC
protected final Runnable logic
protected final Runnable overrunLogic
protected boolean feasible
protected long period
protected final long cost
private static final boolean SHOW_FEASIBILITY
| Constructor Detail |
public RTWorkerThread(Runnable logic,
long cost,
long period)
public RTWorkerThread(Runnable logic,
long cost,
long period,
Runnable overrunLogic)
| Method Detail |
public long getPeriod()
public boolean isFeasible()
public void run()
run in interface Runnablerun in class RealtimeThreadpublic void cease()
Ceaseable
cease in interface Ceaseable
|
Boeing Simulation 3.1 API Specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||