Enum FrameType
- java.lang.Object
-
- java.lang.Enum<FrameType>
-
- org.openmuc.jdlms.sessionlayer.hdlc.FrameType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCONNECT
DISCONNECT_MODE
ERR_INVALID_TYPE
FRAME_REJECT
INFORMATION
RECEIVE_NOT_READY
RECEIVE_READY
SET_NORMAL_RESPONSEMODE
UNNUMBERED_ACKNOWLEDGE
UNNUMBERED_INFORMATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FrameType
frameTypeFor(int controlByte)
byte
value()
static FrameType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FrameType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFORMATION
public static final FrameType INFORMATION
-
RECEIVE_READY
public static final FrameType RECEIVE_READY
-
RECEIVE_NOT_READY
public static final FrameType RECEIVE_NOT_READY
-
SET_NORMAL_RESPONSEMODE
public static final FrameType SET_NORMAL_RESPONSEMODE
-
DISCONNECT
public static final FrameType DISCONNECT
-
UNNUMBERED_ACKNOWLEDGE
public static final FrameType UNNUMBERED_ACKNOWLEDGE
-
DISCONNECT_MODE
public static final FrameType DISCONNECT_MODE
-
FRAME_REJECT
public static final FrameType FRAME_REJECT
-
UNNUMBERED_INFORMATION
public static final FrameType UNNUMBERED_INFORMATION
-
ERR_INVALID_TYPE
public static final FrameType ERR_INVALID_TYPE
-
-
Method Detail
-
values
public static FrameType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FrameType c : FrameType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FrameType 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 namejava.lang.NullPointerException
- if the argument is null
-
value
public byte value()
-
frameTypeFor
public static FrameType frameTypeFor(int controlByte)
-
-