org.openflow.protocol
Enum OFPort

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

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


Enum Constant Summary
OFPP_ALL
           
OFPP_ANY
           
OFPP_CONTROLLER
           
OFPP_FLOOD
           
OFPP_IN_PORT
           
OFPP_LOCAL
           
OFPP_MAX
           
OFPP_NORMAL
           
OFPP_TABLE
           
 
Field Summary
protected  int value
           
 
Method Summary
 int getValue()
           
static OFPort valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OFPort[] 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

OFPP_MAX

public static final OFPort OFPP_MAX

OFPP_IN_PORT

public static final OFPort OFPP_IN_PORT

OFPP_TABLE

public static final OFPort OFPP_TABLE

OFPP_NORMAL

public static final OFPort OFPP_NORMAL

OFPP_FLOOD

public static final OFPort OFPP_FLOOD

OFPP_ALL

public static final OFPort OFPP_ALL

OFPP_CONTROLLER

public static final OFPort OFPP_CONTROLLER

OFPP_LOCAL

public static final OFPort OFPP_LOCAL

OFPP_ANY

public static final OFPort OFPP_ANY
Field Detail

value

protected int value
Method Detail

values

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

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

valueOf

public static OFPort 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

getValue

public int getValue()
Returns:
the value