|
||||||||||
| 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. |
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. |
boolean |
setIfFeasible(ReleaseParameters release,
MemoryParameters memory)
|
boolean |
setIfFeasible(ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
|
boolean |
setIfFeasible(ReleaseParameters release,
ProcessingGroupParameters group)
|
boolean |
setIfFeasible(SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory)
|
boolean |
setIfFeasible(SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
|
void |
setMemoryParameters(MemoryParameters memory)
Set the MemoryParameters for this Schedulable
object. |
boolean |
setMemoryParametersIfFeasible(MemoryParameters memory)
Set the MemoryParameters for this Schedulable
object. |
void |
setProcessingGroupParameters(ProcessingGroupParameters group)
Set the ProcessingGroupParameters for this Schedulable object. |
boolean |
setProcessingGroupParametersIfFeasible(ProcessingGroupParameters group)
Set the ProcessingGroupParameters of this Schedulable object
only if the resulting task set is feasible. |
void |
setReleaseParameters(ReleaseParameters release)
Set the ReleaseParameters for this Schedulable
object. |
boolean |
setReleaseParametersIfFeasible(ReleaseParameters release)
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 scheduling,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
Set the Scheduler for this Schedulable object. |
void |
setSchedulingParameters(SchedulingParameters scheduling)
Set the SchedulingParameters for this Schedulable object only if the resulting task set is feasible. |
boolean |
setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
Set the SchedulingParameters for this Schedulable object. |
| Methods inherited from interface java.lang.Runnable |
run |
| Method Detail |
public boolean addIfFeasible()
Schedulable. If successful return
true, if not return false. If there is not assigned scheduler
false is returned.
public boolean addToFeasibility()
Schedulable will be considered in the feasibility analysis of
the associated Scheduler until further notice. Whether the
resulting system is feasible or not, the addition is completed.
public MemoryParameters getMemoryParameters()
MemoryParameters of this Schedulable
object.
MemoryParameters valuepublic void setMemoryParameters(MemoryParameters memory)
MemoryParameters for this Schedulable
object.
memory - the MemoryParameters for this Schedulable objectpublic boolean setMemoryParametersIfFeasible(MemoryParameters memory)
MemoryParameters for this Schedulable
object.
memory - the MemoryParameters for this Schedulable object
public ProcessingGroupParameters getProcessingGroupParameters()
ProcessingGroupParameters of this
Schedulable object.
ProcessingGroupParameters valuepublic void setProcessingGroupParameters(ProcessingGroupParameters group)
ProcessingGroupParameters for this Schedulable object.
group - a ProcessingGroupParameters valuepublic boolean setProcessingGroupParametersIfFeasible(ProcessingGroupParameters group)
ProcessingGroupParameters of this Schedulable object
only if the resulting task set is feasible.
group - a ProcessingGroupParameters value
public ReleaseParameters getReleaseParameters()
ReleaseParameters of this Schedulable
object.
ReleaseParameters valuepublic void setReleaseParameters(ReleaseParameters release)
ReleaseParameters for this Schedulable
object.
release - a ReleaseParameters valuepublic boolean setReleaseParametersIfFeasible(ReleaseParameters release)
ReleaseParameters for this Schedulable object only if
the resulting task set is feasible.
release - a ReleaseParameters valuepublic Scheduler getScheduler()
Scheduler for this Schedulable object.
Scheduler valuepublic void setScheduler(Scheduler scheduler)
Scheduler for this Schedulable object.
scheduler - the scheduler.
public void setScheduler(Scheduler scheduler,
SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
Scheduler for this Schedulable object.
scheduler - a Scheduler valuescheduling - a SchedulingParameters valuerelease - a ReleaseParameters valuememory - a MemoryParameters valuegroup - a ProcessingGroupParameters valuepublic SchedulingParameters getSchedulingParameters()
SchedulingParameters for this Schedulable object.
SchedulingParameters valuepublic void setSchedulingParameters(SchedulingParameters scheduling)
SchedulingParameters for this Schedulable object only if the resulting task set is feasible.
scheduling - a SchedulingParameters valuepublic boolean setSchedulingParametersIfFeasible(SchedulingParameters scheduling)
SchedulingParameters for this Schedulable object.
scheduling - 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 boolean setIfFeasible(ReleaseParameters release,
MemoryParameters memory)
public boolean setIfFeasible(ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
public boolean setIfFeasible(ReleaseParameters release,
ProcessingGroupParameters group)
public boolean setIfFeasible(SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory)
public boolean setIfFeasible(SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||