|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.realtime.SchedulingParameters javax.realtime.PriorityParameters
public class PriorityParameters
Instances of this class should
be assigned to schedulable objects that are managed 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(int priority)
Create an instance of PriorityParameters with the given priority. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a clone of this . |
int |
getPriority()
Gets the priority value. |
void |
setPriority(int priority)
Set the priority value. |
java.lang.String |
toString()
Converts the priority value to a string. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PriorityParameters(int priority)
PriorityParameters
with the given priority.
priority
- The priority assigned to schedulable objects that
use this parameter instance.Method Detail |
---|
public java.lang.Object clone()
SchedulingParameters
this
. This method should behave
effectively as if it constructed a new object with clones of
the high-resolution time values of this.
clone
does not copy any associations from this
and it does not
implicitly bind the new object to a SO.
clone
in class SchedulingParameters
public int getPriority()
public void setPriority(int priority)
RealtimeThread.setSchedulingParameters(SchedulingParameters)
)
the base priority of those schedulable objects is altered as
specified by each schedulable object's scheduler.
priority
- The value to which priority is set.
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |