public class ImportanceParameters extends PriorityParameters
Jamaica Real-Time Specification for Java class ImportanceParameters.
This class is an extension of PriorityParameters that provides an importance value to be able to define an order for schedulable objects that share the same priority. This importance may be used in overload situations to decide which task to execute in preference to another.
The default PriorityScheduler used by JamaicaVM does not consider importance parameters in its scheduling decisions.
Constructor and Description |
---|
ImportanceParameters(int priority,
int importance)
Constructor to create an instance of ImportanceParameters with
the given priority and importance values.
|
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
|
int |
getImportance()
getImportance returns the current importance parameter.
|
void |
setImportance(int importance)
setImportance sets the importance parameters for this and all
schedulable objects associated with this ImportanceParameters.
|
String |
toString()
toString creates a string of the form
"ImportanceParameters("+ priority++", "+ importance+")" |
getPriority, setPriority
subsumes
public ImportanceParameters(int priority, int importance)
IllegalArgumentException
- iff importance is negative.priority
- the new priority value.importance
- the new importance value.public int getImportance()
public void setImportance(int importance)
IllegalArgumentException
- iff importance is negative.importance
- the new importance value.public String toString()
"ImportanceParameters("+ priority++", "+ importance+")"
toString
in class PriorityParameters
public Object clone()
clone
in class PriorityParameters
Cloneable
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.