|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Handlers and other objects can be run by a Scheduler
if they
provide a run()
method and the methods defined below. The
Scheduler
uses this information to create a suitable context
to execute the run()
method.
Method Summary | |
boolean |
addIfFeasible()
Add the scheduling and release characteristics of this
to the set of such chracteristics already being considered, if the
addition would result in the new, larger set being feasible. |
boolean |
addToFeasibility()
Inform the scheduler and cooperating facilities that scheduling and release characteristics of this instance of Schedulable
should be considered in feasibility analysis until further notified. |
javax.realtime.MemoryParameters |
getMemoryParameters()
Gets a reference to the MemoryParameters object. |
javax.realtime.ProcessingGroupParameters |
getProcessingGroupParameters()
Gets a reference to the ProcessingGroupParameters object. |
javax.realtime.ReleaseParameters |
getReleaseParameters()
Gets a reference to the ReleaseParameters object. |
javax.realtime.Scheduler |
getScheduler()
Gets a reference to the Scheduler object. |
javax.realtime.SchedulingParameters |
getSchedulingParameters()
Gets a reference to the SchedulingParameters object. |
long |
getUID()
Return a UID for this Schedulable object. |
void |
removeFromFeasibility()
Inform the scheduler and cooperating facilities that scheduling and release characteristics of this instance of Schedulable should
not be considered in feasibility analysis until further notified. |
boolean |
setIfFeasible(javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory)
This method appears in many classes in the RTSJ and with various parameters. |
boolean |
setIfFeasible(javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memory,
javax.realtime.ProcessingGroupParameters group)
This method appears in many classes in the RTSJ and with various parameters. |
boolean |
setIfFeasible(javax.realtime.ReleaseParameters release,
javax.realtime.ProcessingGroupParameters group)
This method appears in many classes in the RTSJ and with various parameters. |
void |
setMemoryParameters(javax.realtime.MemoryParameters memory)
Sets the memory parameters associated with this instance of Schedulable . |
boolean |
setMemoryParametersIfFeasible(javax.realtime.MemoryParameters memParam)
The method first performs a feasibility analysis using the given memory parameters as replacements for the memory parameters of this . |
void |
setProcessingGroupParameters(javax.realtime.ProcessingGroupParameters pgp)
Sets the ProcessingGroupParameters of this only
if the resulting set of scheduling and release characteristics is feasible. |
boolean |
setProcessingGroupParametersIfFeasible(javax.realtime.ProcessingGroupParameters groupParameters)
Sets the ProcessingGroupParameters of this only
if the resulting set of scheduling and release characteristics is feasible. |
void |
setReleaseParameters(javax.realtime.ReleaseParameters release)
Sets the release parameters associated with this instance of Schedulable . |
boolean |
setReleaseParametersIfFeasible(javax.realtime.ReleaseParameters release)
Set the ReleaseParameters for this schedulable object only if
the resulting set of scheduling and release characteristics is feasible. |
void |
setScheduler(javax.realtime.Scheduler scheduler)
Sets the reference to the Scheduler object. |
void |
setScheduler(javax.realtime.Scheduler scheduler,
javax.realtime.SchedulingParameters scheduling,
javax.realtime.ReleaseParameters release,
javax.realtime.MemoryParameters memoryParameters,
javax.realtime.ProcessingGroupParameters processingGroup)
Sets the reference to the Scheduler object. |
void |
setSchedulingParameters(javax.realtime.SchedulingParameters scheduling)
Sets the reference to the SchedulingParameters object. |
boolean |
setSchedulingParametersIfFeasible(javax.realtime.SchedulingParameters scheduling)
The method first performs a feasibility analysis using the given scheduling parameters as replacements for the scheduling parameters of this . |
Methods inherited from interface java.lang.Runnable |
run |
Method Detail |
public boolean addIfFeasible()
this
to the set of such chracteristics already being considered, if the
addition would result in the new, larger set being feasible.
Scheduler
.public boolean addToFeasibility()
Schedulable
should be considered in feasibility analysis until further notified.
public javax.realtime.MemoryParameters getMemoryParameters()
MemoryParameters
object.
MemoryParameters
object.public javax.realtime.ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters
object.
ProcessingGroupParameters
object.public javax.realtime.ReleaseParameters getReleaseParameters()
ReleaseParameters
object.
ReleaseParameters
object.public javax.realtime.SchedulingParameters getSchedulingParameters()
SchedulingParameters
object.
SchedulingParameters
object.public javax.realtime.Scheduler getScheduler()
Scheduler
object.
Scheduler
object.public void removeFromFeasibility()
Schedulable
should
not be considered in feasibility analysis until further notified.
public boolean setIfFeasible(javax.realtime.ReleaseParameters release, javax.realtime.MemoryParameters memory)
Schedulable
or an instance of Schedulable
. The
method first performs a feasibility analysis using the new scheduling
characteristics of either this
or the given instance of
Schedulable
. If the resulting system is feasible the method
replaces the current sheduling characteristics, of either this
or the given instance of Schedulable
as appropriate, with the
new scheduling characteristics.
release
- The proposed release parameters.memory
- The proposed memory parameters.
public boolean setIfFeasible(javax.realtime.ReleaseParameters release, javax.realtime.MemoryParameters memory, javax.realtime.ProcessingGroupParameters group)
Schedulable
or an instance of Schedulable
. The
method first performs a feasibility analysis using the new scheduling
characteristics of either this
or the given instance of
Schedulable
. If the resulting system is feasible the method
replaces the current sheduling characteristics, of either this
or the given instance of Schedulable
as appropriate, with the
new scheduling characteristics.
release
- The proposed release parameters.memory
- The proposed memory parameters.group
- The proposed processing group parameters.
public boolean setIfFeasible(javax.realtime.ReleaseParameters release, javax.realtime.ProcessingGroupParameters group)
Schedulable
or an instance of Schedulable
. The
method first performs a feasibility analysis using the new scheduling
characteristics of either this
or the given instance of
Schedulable
. If the resulting system is feasible the method
replaces the current sheduling characteristics, of either this
or the given instance of Schedulable
as appropriate, with the
new scheduling characteristics.
release
- The proposed release parameters.group
- The proposed processing group parameters.
public void setMemoryParameters(javax.realtime.MemoryParameters memory)
Schedulable
.
memory
- A MemoryParameters
object which will become the
memory parameters associated with this
after
the method call.public boolean setMemoryParametersIfFeasible(javax.realtime.MemoryParameters memParam)
this
.
If the resulting system is feasible the method replaces the current
memory parameterers of this
with the new memory parameters.
memParam
- The proposed memory Parameters
public void setProcessingGroupParameters(javax.realtime.ProcessingGroupParameters pgp)
ProcessingGroupParameters
of this
only
if the resulting set of scheduling and release characteristics is feasible.
pgp
- The ProcessingGroupParameters
object. If null,
nothing happens.
public boolean setProcessingGroupParametersIfFeasible(javax.realtime.ProcessingGroupParameters groupParameters)
ProcessingGroupParameters
of this
only
if the resulting set of scheduling and release characteristics is feasible.
groupParameters
- The ProcessingGroupParameters
object.
If null, nothing happens.
public void setReleaseParameters(javax.realtime.ReleaseParameters release)
Schedulable
.
Since this affects the constraints expressed in the release parameters of the
existing schedulable objects, this may change the feasibility of the current schedule.
release
- A ReleaseParameters
object which will become the
release parameters associated with this after the method call.public boolean setReleaseParametersIfFeasible(javax.realtime.ReleaseParameters release)
ReleaseParameters
for this schedulable object only if
the resulting set of scheduling and release characteristics is feasible.
release
- The ReleaseParameters
object. If null, nothing happens.
public void setSchedulingParameters(javax.realtime.SchedulingParameters scheduling)
SchedulingParameters
object.
scheduling
- A reference to the SchedulingParameters
object.
java.lang.IllegalThreadStateException
- Thrown when:
((Thread.isAlive() &&
Not Blocked) == true)
.
(Where blocked means waiting in
Thread.wait(), Thread.join()
or Thread.sleep()
).public boolean setSchedulingParametersIfFeasible(javax.realtime.SchedulingParameters scheduling)
this
.
If the resulting system is feasible the method replaces the current scheduling
parameters of this
with the new scheduling parameters.
scheduling
- The proposed scheduling parameters.
public void setScheduler(javax.realtime.Scheduler scheduler) throws java.lang.IllegalThreadStateException
Scheduler
object.
scheduler
- A reference to the Scheduler
object.
java.lang.IllegalThreadStateException
- Thrown when:
((Thread.isAlive() &&
Not Blocked) == true)
.
(Where blocked means waiting
in Thread.wait(),
Thread.join()
or
Thread.sleep()
).public void setScheduler(javax.realtime.Scheduler scheduler, javax.realtime.SchedulingParameters scheduling, javax.realtime.ReleaseParameters release, javax.realtime.MemoryParameters memoryParameters, javax.realtime.ProcessingGroupParameters processingGroup) throws java.lang.IllegalThreadStateException
Scheduler
object.
scheduler
- A reference to the Scheduler
object.scheduling
- A reference to the SchedulingParameters
which
will be associated with this
. If null, no
changes to current value of this parameter is made.release
- A reference to the ReleaseParameters
which will
be associated with this
. If null, no change to
current value of this parameter is made.memoryParameters
- A reference to the MemoryParaemters
which will be associated with this
. If
null, no change to current value of this parameter
is made.processingGroup
- A reference to the ProcessingGroupParameters
which will be associated with this
. If null,
no change to current value of this parameter is made.
java.lang.IllegalThreadStateException
- Thrown when:
((Thread.isAlive() &&
Not Blocked) == true)
.
(Where blocked means waiting
in Thread.wait(),
Thread.join()
or
Thread.sleep()
).public long getUID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |