javax.realtime.DSS
Class SimulationScheduler

java.lang.Object
  extended byjavax.realtime.Scheduler
      extended byjavax.realtime.DSS.SimulationScheduler

public class SimulationScheduler
extends Scheduler

Author:
gary

Constructor Summary
SimulationScheduler()
           
 
Method Summary
protected  boolean addToFeasibility(Schedulable schedulable)
          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.
 void fireSchedulable(Schedulable schedulable)
          Trigger the execution of a schedulable object (like an AsynchEventHandler).
 java.lang.String getPolicyName()
           
static Scheduler instance()
           
 boolean isFeasible()
           
protected  boolean removeFromFeasibility(Schedulable schedulable)
           
 
Methods inherited from class javax.realtime.Scheduler
getDefaultScheduler, setDefaultScheduler, setIfFeasible, setIfFeasible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulationScheduler

public SimulationScheduler()
Method Detail

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