aicas logoJamaicaVM 3.2 rel 62
RTSJ Implementation

javax.realtime
Class ImportanceParameters

java.lang.Object
  extended by javax.realtime.SchedulingParameters
      extended by javax.realtime.PriorityParameters
          extended by javax.realtime.ImportanceParameters
All Implemented Interfaces:
java.lang.Cloneable

public class ImportanceParameters
extends PriorityParameters

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

ImportanceParameters

public ImportanceParameters(int priority,
                            int importance)
Constructor to create an instance of ImportanceParameters with the given priority and importance values.

Parameters:
priority - the new priority value.
importance - the new importance value.
Throws:
java.lang.IllegalArgumentException - ifff importance is negative.
Method Detail

getImportance

public int getImportance()
getImportance returns the current importance parameter.

Returns:
the current importance value.

setImportance

public void setImportance(int importance)
setImportance sets the importance parameters for this and all schedulable objects associated with this ImportanceParameters.

Parameters:
importance - the new importance value.
Throws:
java.lang.IllegalArgumentException - ifff importance is negative.

toString

public java.lang.String toString()
toString creates a string of the form "ImportanceParameters("+priority++","+importance+")"

Overrides:
toString in class PriorityParameters
Returns:
the string represantation of this.

aicas logoJamaicaVM 3.2 rel 62
RTSJ Implementation

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.