public class FirstInFirstOutParameters extends PriorityParameters
PriorityParameters except that it is only valid with
the FirstInFirstOutScheduler.| Constructor and Description |
|---|
FirstInFirstOutParameters(int priority)
Create scheduling parameters restricted to the FIFO scheduler.
|
FirstInFirstOutParameters(int priority,
Affinity affinity)
Create scheduling parameters restricted to the FIFO scheduler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatible(Scheduler scheduler)
Determines whether
this scheduling parameters can be used by
tasks scheduled by scheduler. |
boolean |
subsumes(SchedulingParameters other)
Determines whether this parameters is more eligible than another.
|
getPriority, setPriority, toStringclone, getAffinitypublic FirstInFirstOutParameters(int priority,
Affinity affinity)
priority - The priority assigned to schedulables that use this
parameter instance.affinity - The affinity assigned to schedulables that use this
parameter instance.public FirstInFirstOutParameters(int priority)
priority - The priority assigned to schedulables that use this
parameter instance.public boolean isCompatible(Scheduler scheduler)
SchedulingParametersthis scheduling parameters can be used by
tasks scheduled by scheduler.isCompatible in class PriorityParametersscheduler - The scheduler to check againsttrue when and only when this can be used
with scheduler as the scheduler.public boolean subsumes(SchedulingParameters other)
SchedulingParameterssubsumes in interface Subsumable<SchedulingParameters>subsumes in class PriorityParametersother - The other parameters object to be compared with.