javax.realtime.DSS
Class SimulationScheduler
java.lang.Object
javax.realtime.Scheduler
javax.realtime.DSS.SimulationScheduler
- public class SimulationScheduler
- extends Scheduler
- Author:
- gary
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimulationScheduler
public SimulationScheduler()
addToFeasibility
protected boolean addToFeasibility(Schedulable schedulable)
- Description copied from class:
Scheduler
- Inform the scheduler and cooperating facilities that the resouce 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.
Whether the resulting system is feasible or not, the addition is completed.
- Specified by:
addToFeasibility
in class Scheduler
- Parameters:
schedulable
- The schedulable object to be added
- Returns:
- true if the resulting system is feasible
fireSchedulable
public void fireSchedulable(Schedulable schedulable)
- Description copied from class:
Scheduler
- Trigger the execution of a schedulable object (like an
AsynchEventHandler
).
- Specified by:
fireSchedulable
in class Scheduler
- Parameters:
schedulable
-
getPolicyName
public java.lang.String getPolicyName()
- Specified by:
getPolicyName
in class Scheduler
- Returns:
- the policy name
isFeasible
public boolean isFeasible()
- Specified by:
isFeasible
in class Scheduler
- Returns:
- true if the current system is feasible
removeFromFeasibility
protected boolean removeFromFeasibility(Schedulable schedulable)
- Specified by:
removeFromFeasibility
in class Scheduler
- Parameters:
schedulable
-
- Returns:
- true if the resulting system is feasible
instance
public static Scheduler instance()
- Returns:
- a reference to the default instance of this class