public enum FlowModFlag extends Enum<FlowModFlag> implements OfpBitmapEnum
Enum Constant and Description |
---|
CHECK_OVERLAP
Check for overlapping entries first; Since 1.0.
|
EMERG
Remark this is for emergency; Since 1.0; Removed at 1.1.
|
NO_BYTE_COUNTS
Don't keep track of byte count; Since 1.3.
|
NO_PACKET_COUNTS
Don't keep track of packet count; Since 1.3.
|
RESET_COUNTS
Reset flow packet and byte counts; Since 1.2.
|
SEND_FLOW_REM
Send flow removed message when flow expires or is deleted; Since 1.0.
|
Modifier and Type | Method and Description |
---|---|
static Set<FlowModFlag> |
decodeBitmap(int bitmap,
ProtocolVersion pv)
Decodes a flow mod flag bitmap to generate the corresponding set of
flags.
|
static int |
encodeBitmap(Set<FlowModFlag> flags,
ProtocolVersion pv)
Encodes a set of flow mod flags as a bitmap.
|
int |
getBit(ProtocolVersion pv)
Returns the bit value for the constant, under the given protocol
version.
|
String |
toDisplayString()
Returns a string representation of the constant, suitable for
presentation in a display.
|
String |
toString() |
static FlowModFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlowModFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowModFlag SEND_FLOW_REM
public static final FlowModFlag CHECK_OVERLAP
public static final FlowModFlag EMERG
public static final FlowModFlag RESET_COUNTS
public static final FlowModFlag NO_PACKET_COUNTS
public static final FlowModFlag NO_BYTE_COUNTS
public static FlowModFlag[] values()
for (FlowModFlag c : FlowModFlag.values()) System.out.println(c);
public static FlowModFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getBit(ProtocolVersion pv)
OfpBitmapEnum
getBit
in interface OfpBitmapEnum
pv
- the protocol versionpublic String toString()
toString
in class Enum<FlowModFlag>
public String toDisplayString()
OfpBitmapEnum
toDisplayString
in interface OfpBitmapEnum
public static Set<FlowModFlag> decodeBitmap(int bitmap, ProtocolVersion pv)
bitmap
- the bitmapped flagspv
- the protocol versionVersionMismatchException
- if unexpected flag bits found for
the specified versionpublic static int encodeBitmap(Set<FlowModFlag> flags, ProtocolVersion pv)
flags
parameter may be null, in which case a bitmap of 0 (zero) is returned.flags
- the flags to encodepv
- the protocol versionNullPointerException
- if protocol version is nullVersionMismatchException
- if a flag is present that is not
supported in the given protocol versionCopyright © 2015. All Rights Reserved.