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, toString
clone, getAffinity
public 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)
SchedulingParameters
this
scheduling parameters can be used by
tasks scheduled by scheduler
.isCompatible
in class PriorityParameters
scheduler
- The scheduler to check againsttrue
when and only when this
can be used
with scheduler
as the scheduler.public boolean subsumes(SchedulingParameters other)
SchedulingParameters
subsumes
in interface Subsumable<SchedulingParameters>
subsumes
in class PriorityParameters
other
- The other parameters object to be compared with.