public class SchedulingParameters extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, Subsumable<SchedulingParameters>
Subclasses of this class provide parameters for schedulable objects used by the scheduler to perform the scheduling of these objects.
NOTE: the methods in this class are not synchronized. They cannot be used by several threads simultaneously without proper explicit synchronization.
Modifier | Constructor and Description |
---|---|
protected |
SchedulingParameters()
Constructor to create SchedulingParameters that are not associated
with any schedulable object.
|
protected |
SchedulingParameters(Affinity affinity)
Creates a new instance of
SchedulingParameters . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
clone creates a clone of this object with the same parameters but
without association to any schedulable object
|
Affinity |
getAffinity()
Determine the affinity set instance associated of these parameters.
|
boolean |
subsumes(SchedulingParameters other)
Indicates that some set represented by
other is subsumed by the
set represented by this object. |
protected SchedulingParameters()
protected SchedulingParameters(Affinity affinity)
SchedulingParameters
.affinity
- Sets the affinity for these parameters.
A null value defaults to the affinity of the caller.public java.lang.Object clone()
clone
in class java.lang.Object
public Affinity getAffinity()
public boolean subsumes(SchedulingParameters other)
Subsumable
other
is subsumed by the
set represented by this
object.subsumes
in interface Subsumable<SchedulingParameters>
other
- The object to be compared with.other
is
subsumed by the set represented by this
object.