alma::ACS::jbaci::BACIPriority Class Reference

Collaboration diagram for alma::ACS::jbaci::BACIPriority:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BACIPriority (int value)
int getValue ()
int compareTo (Object o)

Static Public Attributes

static final int MAX_PRIORITY_VALUE = 0
static final int MIN_PRIORITY_VALUE = 1000
static final int MAX_REALTIME_PRIORITY_VALUE = MAX_PRIORITY_VALUE
static final int MIN_REALTIME_PRIORITY_VALUE = 99
static final int MAX_NORMAL_PRIORITY_VALUE = MIN_REALTIME_PRIORITY_VALUE + 1
static final int MIN_NORMAL_PRIORITY_VALUE = 899
static final int MAX_IDLE_PRIORITY_VALUE = MIN_NORMAL_PRIORITY_VALUE + 1
static final int MIN_IDLE_PRIORITY_VALUE = MIN_PRIORITY_VALUE
static final BACIPriority REALTIME
static final BACIPriority NORMAL
static final BACIPriority IDLE

Private Attributes

int value

Detailed Description

BACI priority. Priorities are defined as an interger value in range from 0 to 1000, where lower value means higher priority. There are 3 predifined classes of priorities:

Author:
Matej Sekoranja
Version:
$id$

Constructor & Destructor Documentation

alma::ACS::jbaci::BACIPriority::BACIPriority ( int  value  )  [inline]

Creates a user defined priority.

References MAX_PRIORITY_VALUE, and MIN_PRIORITY_VALUE.


Member Function Documentation

int alma::ACS::jbaci::BACIPriority::compareTo ( Object  o  )  [inline]
See also:
java.lang.Comparable::compareTo(java.lang.Object)

References value.

Referenced by alma::ACS::jbaci::PrioritizedRunnableComparator::compare().

int alma::ACS::jbaci::BACIPriority::getValue (  )  [inline]

Returns priority value.

Returns:
priority value.

References value.


Member Data Documentation

Maximal IDLE class priority value.

Maximal NORMAL class priority value.

Maximal priority value.

Referenced by BACIPriority().

Maximal REALTIME class priority value.

Minimal IDLE class priority value.

Minimal NORMAL class priority value.

Minimal priority value.

Referenced by BACIPriority().

Minimal REALTIME class priority value.

Initial value:

REALTIME priorty class.

Priority value.

Referenced by compareTo(), and getValue().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2