|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.realtime.SchedulingParameters
lejos.realtime.PriorityParameters
public class PriorityParameters
Instances of this class should be assigned to schedulable objects that are by schedulers which use a single integer to determine execution order. The base scheduler required by this specification and represented by the class PriorityScheduler is such a scheduler.
Constructor Summary | |
---|---|
PriorityParameters()
|
|
PriorityParameters(int priority)
|
Method Summary | |
---|---|
int |
getPriority()
Gets the priority value. |
void |
setPriority(int priority)
Sets the priority value. |
String |
toString()
Converts the priority value to a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PriorityParameters()
public PriorityParameters(int priority)
Method Detail |
---|
public int getPriority()
public void setPriority(int priority) throws IllegalArgumentException
priority
- The value to which priority is set.
IllegalArgumentException
- Thrown if the given priority value is incompatible with the
scheduler for any of the schedulable objects which are presently using
this parameter object.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |