public class PriorityParameters extends SchedulingParameters
PriorityScheduler
is such a scheduler.Constructor and Description |
---|
PriorityParameters(int priority)
Creates an instance of
PriorityParameters with the default
affinity. |
PriorityParameters(int priority,
Affinity affinity)
Creates an instance of
PriorityParameters with the given features. |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Gets the priority value.
|
boolean |
isCompatible(Scheduler scheduler)
Determines whether
this scheduling parameters can be used by
tasks scheduled by scheduler . |
PriorityParameters |
setPriority(int priority)
Deprecated.
since RTSJ 2.0
|
boolean |
subsumes(SchedulingParameters other)
Determines whether this parameters is more eligible than another.
|
java.lang.String |
toString()
Converts the priority value to a string.
|
clone, getAffinity
public PriorityParameters(int priority, Affinity affinity)
PriorityParameters
with the given features.priority
- The priority assigned to schedulables that use this
parameter instance.affinity
- The affinity assigned to schedulables that use this
parameter instance.public PriorityParameters(int priority)
PriorityParameters
with the default
affinity.priority
- The priority assigned to schedulables that
use this parameter instance.public int getPriority()
@Deprecated public PriorityParameters setPriority(int priority)
RealtimeThread.setSchedulingParameters(SchedulingParameters)
)
the base priority of those schedulables is altered as
specified by each schedulable's scheduler.priority
- The value to which priority is set.this
StaticIllegalArgumentException
- when the given priority value is incompatible with the
scheduler for any of the schedulables which are presently
using this parameter object.public boolean isCompatible(Scheduler scheduler)
SchedulingParameters
this
scheduling parameters can be used by
tasks scheduled by scheduler
.isCompatible
in class SchedulingParameters
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 SchedulingParameters
other
- The other parameters object to be compared with.public java.lang.String toString()
toString
in class java.lang.Object