org.openflow.protocol
Enum OFMeterMod.OFMeterFlags

java.lang.Object
  extended by java.lang.Enum<OFMeterMod.OFMeterFlags>
      extended by org.openflow.protocol.OFMeterMod.OFMeterFlags
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OFMeterMod.OFMeterFlags>
Enclosing class:
OFMeterMod

public static enum OFMeterMod.OFMeterFlags
extends java.lang.Enum<OFMeterMod.OFMeterFlags>


Enum Constant Summary
OFPMF_BURST
           
OFPMF_KBPS
           
OFPMF_PKTPS
           
OFPMF_STATS
           
 
Field Summary
protected  int value
           
 
Method Summary
 int getValue()
           
static short toBitmap(java.util.Set<OFMeterMod.OFMeterFlags> flags)
          Given a set of OFMeterFlags enums, convert to bitmap value
static java.util.EnumSet<OFMeterMod.OFMeterFlags> valueOf(short i)
          Given a meter flags short value, return the set of OFMeterFlags enums associated with it
static OFMeterMod.OFMeterFlags valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OFMeterMod.OFMeterFlags[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFPMF_KBPS

public static final OFMeterMod.OFMeterFlags OFPMF_KBPS

OFPMF_PKTPS

public static final OFMeterMod.OFMeterFlags OFPMF_PKTPS

OFPMF_BURST

public static final OFMeterMod.OFMeterFlags OFPMF_BURST

OFPMF_STATS

public static final OFMeterMod.OFMeterFlags OFPMF_STATS
Field Detail

value

protected int value
Method Detail

values

public static OFMeterMod.OFMeterFlags[] 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 (OFMeterMod.OFMeterFlags c : OFMeterMod.OFMeterFlags.values())
    System.out.println(c);

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

valueOf

public static OFMeterMod.OFMeterFlags 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
java.lang.NullPointerException - if the argument is null

valueOf

public static java.util.EnumSet<OFMeterMod.OFMeterFlags> valueOf(short i)
Given a meter flags short value, return the set of OFMeterFlags enums associated with it

Parameters:
i - flags bitmap
Returns:
EnumSet

toBitmap

public static short toBitmap(java.util.Set<OFMeterMod.OFMeterFlags> flags)
Given a set of OFMeterFlags enums, convert to bitmap value

Parameters:
flags - Set
Returns:
bitmap value

getValue

public int getValue()
Returns:
the value