|
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
public class PriorityParameters
Jamaica Realtime Specification for Java class PriorityParameters.
The default scheduler, PriorityScheduler, uses the priority value provides in the PriorityParameters associated to a schedulable object to determine the execution eligibility.
If two schedulable objects with different actual priority values are ready to run, the schedulable object with the higher actual priority will always be executed in precendence to the one with lower actual priority.
The actual priority is equal to the base priority if no priority inversion avoidance mechanisms has increased the priority to a higher value.
| Constructor Summary | |
|---|---|
PriorityParameters(int priority)
Constructor to create instance of PriorityParameters with the given initial priority value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clone create a clone of this object with the same parameters but without association to any schedulable object |
int |
getPriority()
getPriority returns the current priority value |
void |
setPriority(int priority)
setPriority changes the priority value of this and the current base priority of all schedulable objects that are associated with this. |
java.lang.String |
toString()
toString creates a string of the form "PriorityParameters("+priority+")" |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PriorityParameters(int priority)
priority - the initial priority value.| Method Detail |
|---|
public int getPriority()
public void setPriority(int priority)
throws java.lang.IllegalArgumentException
priority - the new priority value.
java.lang.IllegalArgumentException - if priority is larger than
PriorityScheduler.getMaxPriority() or priority is less than
PriorityScheduler.getMinPriority() (if -strictRTSJ is set) or it
is less then Thread.MIN_PRIORITY (if -strictRTSJ is not set).public java.lang.String toString()
"PriorityParameters("+priority+")"
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
RTSJ Implementation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||