tuwien.auto.calimero
Class Priority

java.lang.Object
  extended by tuwien.auto.calimero.Priority

public final class Priority
extends java.lang.Object

Priority of KNX messages for access on a KNX medium.

All possible priority values are supplied as immutable Priority constants.


Field Summary
static Priority LOW
          Low priority, used for long frames.
static Priority NORMAL
          Normal priority, the default for short frames.
static Priority SYSTEM
          System priority, reserved for high priority management and system configuration.
static Priority URGENT
          Urgent priority, for urgent frames.
 byte value
          Constant with the 2 Bit representation of this priority used in the message priority field.
 
Method Summary
static Priority get(int value)
          Returns the priority of the supplied priority value code.
static Priority get(java.lang.String value)
          Returns the priority of the supplied priority value representation.
 java.lang.String toString()
          Returns the priority in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOW

public static final Priority LOW
Low priority, used for long frames.


NORMAL

public static final Priority NORMAL
Normal priority, the default for short frames.


SYSTEM

public static final Priority SYSTEM
System priority, reserved for high priority management and system configuration.


URGENT

public static final Priority URGENT
Urgent priority, for urgent frames.


value

public final byte value
Constant with the 2 Bit representation of this priority used in the message priority field.

Method Detail

get

public static Priority get(int value)
Returns the priority of the supplied priority value code.

Parameters:
value - priority value code, 0 <= value <= 3
Returns:
the corresponding priority object

get

public static Priority get(java.lang.String value)
Returns the priority of the supplied priority value representation.

The following textual representations for value are allowed:

These are in accordance with the ones returned by toString().

Parameters:
value - priority value in textual representation, value is treated case insensitive
Returns:
the corresponding priority object

toString

public java.lang.String toString()
Returns the priority in textual representation.

Overrides:
toString in class java.lang.Object
Returns:
priority as string