public class SchedulingParameters extends Object implements Serializable, 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 |
---|---|
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 |
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. |
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 Object clone()
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.public boolean isCompatible(Scheduler scheduler)
this
scheduling parameters can be used by
tasks scheduled by scheduler
.scheduler
- The scheduler to check againsttrue
when and only when this
can be used
with scheduler
as the scheduler.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.