net.jolsrv2.constants
Enum MessageTypes

java.lang.Object
  extended by java.lang.Enum<MessageTypes>
      extended by net.jolsrv2.constants.MessageTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageTypes>

public enum MessageTypes
extends java.lang.Enum<MessageTypes>

The class is defining the two message types used in OLSRv2 and their numeric values used in message transmissions. The values of these constants are at the time of writing listed as TBD in the Internet-Draft.

Author:
Andreas Schjønhaug

Enum Constant Summary
HELLOV2
           
TCV2
           
 
Method Summary
 byte byteValue()
          Returns the byte value of a message type
static MessageTypes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageTypes[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HELLOV2

public static final MessageTypes HELLOV2

TCV2

public static final MessageTypes TCV2
Method Detail

values

public static final MessageTypes[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MessageTypes c : MessageTypes.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MessageTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

byteValue

public byte byteValue()
Returns the byte value of a message type

Returns:
the byte value