|
||||||||||
| 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 to the feasibility of the associated scheduler if the resulting feasibility is schedulable. |
boolean |
addToFeasibility()
Inform the scheduler and cooperating facilities that the resource demands (as expressed in the associated instances of SchedulingParameters, ReleaseParameters, MemoryParameters, and ProcessingGroupParameters) of this instance of Schedulable will be considered in the feasibility analysis of the associated Scheduler until further notice. |
int |
executionEligibility()
NOTE: This method is not part of the RTSJ Specification. |
MemoryParameters |
getMemoryParameters()
Get the MemoryParameters of this schedulable object. |
ProcessingGroupParameters |
getProcessingGroupParameters()
Get the ProcessingGroupParameters of this
schedulable object. |
ReleaseParameters |
getReleaseParameters()
Get the ReleaseParameters of this schedulable object. |
Scheduler |
getScheduler()
Get the Scheduler for this schedulable object. |
SchedulingParameters |
getSchedulingParameters()
Get the SchedulingParameters for this schedulable object. |
boolean |
removeFromFeasibility()
Inform the scheduler and cooperating facilities that the resource demands, as expressed in the associated instances of SchedulingParameters, ReleaseParameters, MemoryParameters, and ProcessingGroupParameters, of
this instance of Schedulable should no longer be
considered in the feasibility analysis of the associated Scheduler. |
void |
setMemoryParameters(MemoryParameters memoryParam)
Set the MemoryParameters for this schedulable object. |
boolean |
setMemoryParametersIfFeasible(MemoryParameters memoryParam)
Set the MemoryParameters for this schedulable object. |
void |
setProcessingGroupParameters(ProcessingGroupParameters groupParam)
Set the ProcessingGroupParameters for this schedulable object. |
boolean |
setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParam)
Set the ProcessingGroupParameters of this schedulable object
only if the resulting task set is feasible. |
void |
setReleaseParameters(ReleaseParameters releaseParam)
Set the ReleaseParameters for this schedulable object. |
boolean |
setReleaseParametersIfFeasible(ReleaseParameters releaseParam)
Set the ReleaseParameters for this schedulable object only if
the resulting task set is feasible. |
void |
setScheduler(Scheduler scheduler)
Set the Scheduler for this schedulable object. |
void |
setScheduler(Scheduler scheduler,
SchedulingParameters schedParam,
ReleaseParameters releaseParam,
MemoryParameters memoryParam,
ProcessingGroupParameters groupParam)
Set the Scheduler for this schedulable object. |
void |
setSchedulingParameters(SchedulingParameters schedParam)
Set the SchedulingParameters for this schedulable
object only if the resulting task set is feasible. |
boolean |
setSchedulingParametersIfFeasible(SchedulingParameters schedParam)
Set the SchedulingParameters for this schedulable object. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public boolean addIfFeasible()
public boolean addToFeasibility()
public MemoryParameters getMemoryParameters()
MemoryParameters of this schedulable object.
MemoryParameters value.public void setMemoryParameters(MemoryParameters memoryParam)
MemoryParameters for this schedulable object.
memoryParam - the MemoryParameters for this
schedulable object.public boolean setMemoryParametersIfFeasible(MemoryParameters memoryParam)
MemoryParameters for this schedulable object.
memoryParam - the MemoryParameters for this
schedulable object.
public ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters of this
schedulable object.
ProcessingGroupParameters valuepublic void setProcessingGroupParameters(ProcessingGroupParameters groupParam)
ProcessingGroupParameters for this schedulable object.
groupParam - a ProcessingGroupParameters valuepublic boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters groupParam)
ProcessingGroupParameters of this schedulable object
only if the resulting task set is feasible.
groupParam - a ProcessingGroupParameters value
public ReleaseParameters getReleaseParameters()
ReleaseParameters of this schedulable object.
ReleaseParameters valuepublic void setReleaseParameters(ReleaseParameters releaseParam)
ReleaseParameters for this schedulable object.
releaseParam - a ReleaseParameters valuepublic boolean setReleaseParametersIfFeasible(ReleaseParameters releaseParam)
ReleaseParameters for this schedulable object only if
the resulting task set is feasible.
releaseParam - a ReleaseParameters valuepublic Scheduler getScheduler()
Scheduler for this schedulable object.
Scheduler value
public void setScheduler(Scheduler scheduler)
throws IllegalThreadStateException
Scheduler for this schedulable object.
scheduler - the scheduler.
IllegalThreadStateException
public void setScheduler(Scheduler scheduler,
SchedulingParameters schedParam,
ReleaseParameters releaseParam,
MemoryParameters memoryParam,
ProcessingGroupParameters groupParam)
throws IllegalThreadStateException
Scheduler for this schedulable object.
scheduler - a Scheduler valueschedParam - a SchedulingParameters valuereleaseParam - a ReleaseParameters valuememoryParam - a MemoryParameters valuegroupParam - a ProcessingGroupParameters value
IllegalThreadStateException - if an error occurspublic SchedulingParameters getSchedulingParameters()
SchedulingParameters for this schedulable object.
SchedulingParameters valuepublic void setSchedulingParameters(SchedulingParameters schedParam)
SchedulingParameters for this schedulable
object only if the resulting task set is feasible.
schedParam - a SchedulingParameters valuepublic boolean setSchedulingParametersIfFeasible(SchedulingParameters schedParam)
SchedulingParameters for this schedulable object.
schedParam - a SchedulingParameters value
public boolean removeFromFeasibility()
SchedulingParameters, ReleaseParameters, MemoryParameters, and ProcessingGroupParameters, of
this instance of Schedulable should no longer be
considered in the feasibility analysis of the associated Scheduler. Whether the resulting system is feasible or not,
the subtrac-tion is completed.
public int executionEligibility()
int value used internally to represent
a total ordering of the schedulable entities.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||