|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.SchedulingParameters
javax.realtime.PriorityParameters
javax.realtime.ImportanceParameters
public class ImportanceParameters
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 Summary | |
---|---|
ImportanceParameters(int priority,
int importance)
Constructor to create an instance of ImportanceParameters with the given priority and importance values. |
Method Summary | |
---|---|
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+")" |
Methods inherited from class javax.realtime.PriorityParameters |
---|
getPriority, setPriority |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportanceParameters(int priority, int importance)
priority
- the new priority value.importance
- the new importance value.
IllegalArgumentException
- iff importance is negative.Method Detail |
---|
public int getImportance()
public void setImportance(int importance)
importance
- the new importance value.
IllegalArgumentException
- iff importance is negative.public String toString()
"ImportanceParameters("+ priority++", "+ importance+")"
toString
in class PriorityParameters
public Object clone()
clone
in class PriorityParameters
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |