public enum MeterModCommand extends Enum<MeterModCommand> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
ADD
New meter; Since 1.3.
|
DELETE
Delete specified meter; Since 1.3.
|
MODIFY
Modify specified meter; Since 1.3.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static MeterModCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeterModCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeterModCommand ADD
public static final MeterModCommand MODIFY
public static final MeterModCommand DELETE
public static MeterModCommand[] values()
for (MeterModCommand c : MeterModCommand.values()) System.out.println(c);
public static MeterModCommand 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 getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionCopyright © 2015. All Rights Reserved.