|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.realtime.Scheduler
lejos.realtime.EDFScheduler
public class EDFScheduler
Method Summary | |
---|---|
void |
fireSchedulable(Schedulable schedulable)
Trigger the execution of a schedulable object (like an AsyncEventHandler). |
String |
getPolicyName()
Gets a string representing the policy of this. |
static EDFScheduler |
instance()
|
boolean |
isFeasible()
Queries the system about the feasibility of the system currently being considered. |
boolean |
setIfFeasible(Schedulable schedulable,
ReleaseParameters release,
MemoryParameters memory)
This method first performs a feasibility analysis using the proposed parameter objects as replacements for the current parameters of schedulable. |
boolean |
setIfFeasible(Schedulable schedulable,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
|
boolean |
setIfFeasible(Schedulable schedulable,
SchedulingParameters scheduling,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
|
Methods inherited from class lejos.realtime.Scheduler |
---|
getDefaultScheduler, setDefaultScheduler |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void fireSchedulable(Schedulable schedulable)
fireSchedulable
in class Scheduler
schedulable
- - The schedulable object to make active. If null, nothing happens.
UnsupportedOperationException
- - Thrown if the scheduler cannot release schedulable for execution.public String getPolicyName()
getPolicyName
in class Scheduler
public boolean isFeasible()
isFeasible
in class Scheduler
public boolean setIfFeasible(Schedulable schedulable, ReleaseParameters release, MemoryParameters memory)
setIfFeasible
in class Scheduler
schedulable
- - The schedulable object for which the changes are proposed.release
- - The proposed release parameters. If null, the default value of this scheduler is used (a new object is created if the default value is not null).memory
- - The proposed memory parameters. If null, the default value of this scheduler is used (a new object is created if the default value is not null).
IllegalArgumentException
- - Thrown if schedulable is null, or schedulable is not associated with this scheduler, or the proposed parameters are not compatible with this scheduler.
IllegalAssignmentError
- - Thrown if schedulable cannot hold references to the proposed parameter objects, or the parameter objects cannot hold a reference to schedulable.
java.lang.IllegalThreadStateException
- - Thrown if the new release parameters change schedulable from periodic scheduling to some other protocol and schedulable is currently waiting for the next release in RealtimeThread.waitForNextPeriod() or RealtimeThread.waitForNextPeriodInterruptible().public boolean setIfFeasible(Schedulable schedulable, ReleaseParameters release, MemoryParameters memory, ProcessingGroupParameters group)
setIfFeasible
in class Scheduler
public boolean setIfFeasible(Schedulable schedulable, SchedulingParameters scheduling, ReleaseParameters release, MemoryParameters memory, ProcessingGroupParameters group)
setIfFeasible
in class Scheduler
public static EDFScheduler instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |