aicas logo Realtime Java
Technology.

javax.realtime
Class RealtimeThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--javax.realtime.RealtimeThread
All Implemented Interfaces:
java.lang.Runnable, Schedulable
Direct Known Subclasses:
NoHeapRealtimeThread

public class RealtimeThread
extends java.lang.Thread
implements Schedulable


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RealtimeThread()
           
RealtimeThread(SchedulingParameters scheduling)
           
RealtimeThread(SchedulingParameters scheduling, ReleaseParameters release)
           
RealtimeThread(SchedulingParameters scheduling, ReleaseParameters release, MemoryParameters memory, MemoryArea area, ProcessingGroupParameters group, java.lang.Runnable logic)
           
 
Method Summary
 boolean addIfFeasible()
           
 boolean addToFeasibility()
           
static RealtimeThread currentRealtimeThread()
           
 void deschedulePeriodic()
           
static MemoryArea getCurrentMemoryArea()
           
static int getInitialMemoryAreaIndex()
           
static int getMemoryAreaStackDepth()
           
 MemoryParameters getMemoryParameters()
           
static MemoryArea getOuterMemoryArea(int index)
           
 ProcessingGroupParameters getProcessingGroupParameters()
           
 ReleaseParameters getReleaseParameters()
           
 Scheduler getScheduler()
           
 SchedulingParameters getSchedulingParameters()
           
 void interrupt()
           
 boolean removeFromFeasibility()
           
 void schedulePeriodic()
           
 boolean setIfFeasible(ReleaseParameters release, MemoryParameters memory)
           
 boolean setIfFeasible(ReleaseParameters release, MemoryParameters memory, ProcessingGroupParameters group)
           
 boolean setIfFeasible(ReleaseParameters release, ProcessingGroupParameters group)
           
 void setMemoryParameters(MemoryParameters parameters)
           
 boolean setMemoryParametersIfFeasible(MemoryParameters memParam)
           
 void setProcessingGroupParameters(ProcessingGroupParameters parameters)
           
 boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
           
 void setReleaseParameters(ReleaseParameters parameters)
           
 boolean setReleaseParametersIfFeasible(ReleaseParameters release)
           
 void setScheduler(Scheduler scheduler)
           
 void setScheduler(Scheduler scheduler, SchedulingParameters scheduling, ReleaseParameters release, MemoryParameters memoryParameters, ProcessingGroupParameters processingGroup)
           
 void setSchedulingParameters(SchedulingParameters scheduling)
           
 boolean setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
           
static void sleep(Clock clock, HighResolutionTime time)
           
static void sleep(HighResolutionTime time)
           
 void start()
           
 boolean waitForNextPeriod()
           
 
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, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

RealtimeThread

public RealtimeThread()

RealtimeThread

public RealtimeThread(SchedulingParameters scheduling)

RealtimeThread

public RealtimeThread(SchedulingParameters scheduling,
                      ReleaseParameters release)

RealtimeThread

public RealtimeThread(SchedulingParameters scheduling,
                      ReleaseParameters release,
                      MemoryParameters memory,
                      MemoryArea area,
                      ProcessingGroupParameters group,
                      java.lang.Runnable logic)
Method Detail

addToFeasibility

public boolean addToFeasibility()
Specified by:
addToFeasibility in interface Schedulable

currentRealtimeThread

public static RealtimeThread currentRealtimeThread()
                                            throws java.lang.ClassCastException

deschedulePeriodic

public void deschedulePeriodic()

getMemoryParameters

public MemoryParameters getMemoryParameters()
Specified by:
getMemoryParameters in interface Schedulable

getProcessingGroupParameters

public ProcessingGroupParameters getProcessingGroupParameters()
Specified by:
getProcessingGroupParameters in interface Schedulable

getReleaseParameters

public ReleaseParameters getReleaseParameters()
Specified by:
getReleaseParameters in interface Schedulable

getScheduler

public Scheduler getScheduler()
Specified by:
getScheduler in interface Schedulable

getSchedulingParameters

public SchedulingParameters getSchedulingParameters()
Specified by:
getSchedulingParameters in interface Schedulable

interrupt

public void interrupt()
Overrides:
interrupt in class java.lang.Thread

removeFromFeasibility

public boolean removeFromFeasibility()
Specified by:
removeFromFeasibility in interface Schedulable

schedulePeriodic

public void schedulePeriodic()

setMemoryParameters

public void setMemoryParameters(MemoryParameters parameters)
                         throws java.lang.IllegalThreadStateException
Specified by:
setMemoryParameters in interface Schedulable

setProcessingGroupParameters

public void setProcessingGroupParameters(ProcessingGroupParameters parameters)
Specified by:
setProcessingGroupParameters in interface Schedulable

setReleaseParameters

public void setReleaseParameters(ReleaseParameters parameters)
                          throws java.lang.IllegalThreadStateException
Specified by:
setReleaseParameters in interface Schedulable

setScheduler

public void setScheduler(Scheduler scheduler,
                         SchedulingParameters scheduling,
                         ReleaseParameters release,
                         MemoryParameters memoryParameters,
                         ProcessingGroupParameters processingGroup)
                  throws java.lang.IllegalThreadStateException
Specified by:
setScheduler in interface Schedulable

setScheduler

public void setScheduler(Scheduler scheduler)
                  throws java.lang.IllegalThreadStateException
Specified by:
setScheduler in interface Schedulable

setSchedulingParameters

public void setSchedulingParameters(SchedulingParameters scheduling)
                             throws java.lang.IllegalThreadStateException
Specified by:
setSchedulingParameters in interface Schedulable

sleep

public static void sleep(Clock clock,
                         HighResolutionTime time)
                  throws java.lang.InterruptedException

sleep

public static void sleep(HighResolutionTime time)
                  throws java.lang.InterruptedException

setIfFeasible

public boolean setIfFeasible(ReleaseParameters release,
                             MemoryParameters memory,
                             ProcessingGroupParameters group)

setIfFeasible

public boolean setIfFeasible(ReleaseParameters release,
                             ProcessingGroupParameters group)

setIfFeasible

public boolean setIfFeasible(ReleaseParameters release,
                             MemoryParameters memory)

addIfFeasible

public boolean addIfFeasible()

waitForNextPeriod

public boolean waitForNextPeriod()
                          throws java.lang.IllegalThreadStateException

getCurrentMemoryArea

public static MemoryArea getCurrentMemoryArea()

start

public void start()
Overrides:
start in class java.lang.Thread

setProcessingGroupParametersIfFeasible

public boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParameters)
Specified by:
setProcessingGroupParametersIfFeasible in interface Schedulable

setSchedulingParametersIfFeasible

public boolean setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
Specified by:
setSchedulingParametersIfFeasible in interface Schedulable

setReleaseParametersIfFeasible

public boolean setReleaseParametersIfFeasible(ReleaseParameters release)
Specified by:
setReleaseParametersIfFeasible in interface Schedulable

setMemoryParametersIfFeasible

public boolean setMemoryParametersIfFeasible(MemoryParameters memParam)
Specified by:
setMemoryParametersIfFeasible in interface Schedulable

getMemoryAreaStackDepth

public static int getMemoryAreaStackDepth()

getOuterMemoryArea

public static MemoryArea getOuterMemoryArea(int index)

getInitialMemoryAreaIndex

public static int getInitialMemoryAreaIndex()

aicas logo Realtime Java
Technology.

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2003 aicas GmbH. All Rights Reserved.