org.openflow.protocol
Enum OFPhysicalPort.OFPortState
java.lang.Object
java.lang.Enum<OFPhysicalPort.OFPortState>
org.openflow.protocol.OFPhysicalPort.OFPortState
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OFPhysicalPort.OFPortState>
- Enclosing class:
- OFPhysicalPort
public static enum OFPhysicalPort.OFPortState
- extends java.lang.Enum<OFPhysicalPort.OFPortState>
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
OFPPS_LINK_DOWN
public static final OFPhysicalPort.OFPortState OFPPS_LINK_DOWN
OFPPS_BLOCKED
public static final OFPhysicalPort.OFPortState OFPPS_BLOCKED
OFPPS_LIVE
public static final OFPhysicalPort.OFPortState OFPPS_LIVE
value
protected int value
name
protected java.lang.String name
mapping
protected static java.util.Map<java.lang.Integer,OFPhysicalPort.OFPortState> mapping
values
public static OFPhysicalPort.OFPortState[] 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 (OFPhysicalPort.OFPortState c : OFPhysicalPort.OFPortState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OFPhysicalPort.OFPortState 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
addMapping
public static void addMapping(int i,
OFPhysicalPort.OFPortState t)
- Adds a mapping from type value to OFPortState enum
- Parameters:
i
- state valuest
- type
valueOf
public static OFPhysicalPort.OFPortState valueOf(int i)
- Given a port state value, return the
OFPortState associated with it
- Parameters:
i
- state value
- Returns:
- OFPortState enum type
getValue
public int getValue()
- Returns:
- the value
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<OFPhysicalPort.OFPortState>