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 |
---|---|
Object |
clone()
clone creates a clone of this object with the same parameters but
without association to any schedulable object
|
boolean |
isCompatible(Scheduler scheduler)
Determines whether
this scheduling parameters can be used by
tasks scheduled by scheduler . |
boolean |
subsumes(SchedulingParameters other)
Indicates that some set represented by
other is subsumed by the
set represented by this object. |
String |
toString()
toString creates a string of the form
"PriorityParameters(" + priority + ")" |
getPriority, setPriority
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)
Subsumable
other
is subsumed by the
set represented by this
object.subsumes
in interface Subsumable<SchedulingParameters>
subsumes
in class PriorityParameters
other
- The object to be compared with.other
is
subsumed by the set represented by this
object.public String toString()
"PriorityParameters(" + priority + ")"
toString
in class PriorityParameters
public Object clone()
clone
in class PriorityParameters
Cloneable
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.