|
RTSJ Implementation |
||||||||
| 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 Realtime Specification for Java class ImportanceParameters.
This class is an extension of PriorityParamters 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 | |
|---|---|
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. |
java.lang.String |
toString()
toString creates a string of the form "ImportanceParameters("+priority++","+importance+")" |
| Methods inherited from class javax.realtime.PriorityParameters |
|---|
clone, 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.
java.lang.IllegalArgumentException - ifff importance is negative.| Method Detail |
|---|
public int getImportance()
public void setImportance(int importance)
importance - the new importance value.
java.lang.IllegalArgumentException - ifff importance is negative.public java.lang.String toString()
"ImportanceParameters("+priority++","+importance+")"
toString in class PriorityParameters
|
RTSJ Implementation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||