org.openflow.protocol
Enum OFPhysicalPort.OFPortConfig
java.lang.Object
java.lang.Enum<OFPhysicalPort.OFPortConfig>
org.openflow.protocol.OFPhysicalPort.OFPortConfig
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<OFPhysicalPort.OFPortConfig>
- Enclosing class:
- OFPhysicalPort
public static enum OFPhysicalPort.OFPortConfig
- extends java.lang.Enum<OFPhysicalPort.OFPortConfig>
Field Summary |
protected int |
value
|
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 |
OFPPC_PORT_DOWN
public static final OFPhysicalPort.OFPortConfig OFPPC_PORT_DOWN
OFPPC_NO_RECV
public static final OFPhysicalPort.OFPortConfig OFPPC_NO_RECV
OFPPC_NO_FWD
public static final OFPhysicalPort.OFPortConfig OFPPC_NO_FWD
OFPPC_NO_PACKET_IN
public static final OFPhysicalPort.OFPortConfig OFPPC_NO_PACKET_IN
value
protected int value
values
public static OFPhysicalPort.OFPortConfig[] 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.OFPortConfig c : OFPhysicalPort.OFPortConfig.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.OFPortConfig 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<OFPhysicalPort.OFPortConfig> valueOf(int i)
- Given a port config value, return the set of OFPortConfig enums
associated with it
- Parameters:
i
- port config bitmap
- Returns:
- EnumSet
toBitmap
public static int toBitmap(java.util.Set<OFPhysicalPort.OFPortConfig> configs)
- Given a set of OFPortConfig enums, convert to bitmap value
- Parameters:
configs
- Set
- Returns:
- bitmap value
getValue
public int getValue()
- Returns:
- the value