suramadu.util.exec
Class RTJavaThread
java.lang.Object
java.lang.Thread
javax.realtime.RealtimeThread
suramadu.util.exec.RTJavaThread
- All Implemented Interfaces:
- java.lang.Runnable, javax.realtime.Schedulable
- public class RTJavaThread
- extends javax.realtime.RealtimeThread
Wraps the periodic capabilities of a RealtimeThread and a NoHeapRealtimeThread in the RTSJ. It allows both the period and the
priority to be set.
- Author:
- mbi
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary |
RTJavaThread()
Creates a new instance of RTJavaThread with the specified Runnable. |
RTJavaThread(int iterations)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling,
int iterations)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
int iterations)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory,
javax.realtime.MemoryArea area,
javax.realtime.ProcessingGroupParameters group,
java.lang.Runnable logic)
|
RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory,
javax.realtime.MemoryArea area,
javax.realtime.ProcessingGroupParameters group,
java.lang.Runnable logic,
int iterations)
|
Method Summary |
void |
kill()
Cancels this RTJavaThread by calling its task's cancel() method. |
void |
run()
|
Methods inherited from class javax.realtime.RealtimeThread |
addIfFeasible, addToFeasibility, currentRealtimeThread, deschedulePeriodic, getCurrentMemoryArea, getInitialMemoryAreaIndex, getMemoryArea, getMemoryAreaStackDepth, getMemoryParameters, getOuterMemoryArea, getProcessingGroupParameters, getReleaseParameters, getScheduler, getSchedulingParameters, interrupt, removeFromFeasibility, schedulePeriodic, setIfFeasible, setIfFeasible, setIfFeasible, setMemoryParameters, setMemoryParametersIfFeasible, setProcessingGroupParameters, setProcessingGroupParametersIfFeasible, setReleaseParameters, setReleaseParametersIfFeasible, setScheduler, setScheduler, setSchedulingParameters, setSchedulingParametersIfFeasible, sleep, sleep, start, toString, waitForNextPeriod, yield |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NUMBEROFERRORSALLOWED
public static final int NUMBEROFERRORSALLOWED
- See Also:
- Constant Field Values
RTJavaThread
public RTJavaThread()
- Creates a new instance of RTJavaThread with the specified Runnable.
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling)
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release)
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory,
javax.realtime.MemoryArea area,
javax.realtime.ProcessingGroupParameters group,
java.lang.Runnable logic)
RTJavaThread
public RTJavaThread(int iterations)
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling,
int iterations)
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
int iterations)
RTJavaThread
public RTJavaThread(javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory,
javax.realtime.MemoryArea area,
javax.realtime.ProcessingGroupParameters group,
java.lang.Runnable logic,
int iterations)
kill
public void kill()
- Cancels this RTJavaThread by calling its task's cancel() method.
run
public void run()