org.openflow.protocol
Enum OFPhysicalPort.OFPortFeatures

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

public static enum OFPhysicalPort.OFPortFeatures
extends java.lang.Enum<OFPhysicalPort.OFPortFeatures>


Enum Constant Summary
OFPPF_100GB_FD
           
OFPPF_100MB_FD
           
OFPPF_100MB_HD
           
OFPPF_10GB_FD
           
OFPPF_10MB_FD
           
OFPPF_10MB_HD
           
OFPPF_1GB_FD
           
OFPPF_1GB_HD
           
OFPPF_1TB_FD
           
OFPPF_40GB_FD
           
OFPPF_AUTONEG
           
OFPPF_COPPER
           
OFPPF_FIBER
           
OFPPF_OTHER
           
OFPPF_PAUSE
           
OFPPF_PAUSE_ASYM
           
 
Field Summary
protected  boolean isFullDuplex
           
protected  java.lang.String name
           
protected  OFPhysicalPort.OFPortSpeed speed
           
protected  int value
           
 
Method Summary
 OFPhysicalPort.OFPortSpeed getPortSpeed()
           
 int getValue()
           
 boolean isFullDuplex()
           
static int toBitmap(java.util.Set<OFPhysicalPort.OFPortFeatures> features)
          Given a set of OFPortFeatures enums, convert to bitmap value
 java.lang.String toString()
           
static java.util.EnumSet<OFPhysicalPort.OFPortFeatures> valueOf(int i)
          Given a port features value, return the set of OFPortFeatures associated with it
static OFPhysicalPort.OFPortFeatures valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OFPhysicalPort.OFPortFeatures[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFPPF_10MB_HD

public static final OFPhysicalPort.OFPortFeatures OFPPF_10MB_HD

OFPPF_10MB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_10MB_FD

OFPPF_100MB_HD

public static final OFPhysicalPort.OFPortFeatures OFPPF_100MB_HD

OFPPF_100MB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_100MB_FD

OFPPF_1GB_HD

public static final OFPhysicalPort.OFPortFeatures OFPPF_1GB_HD

OFPPF_1GB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_1GB_FD

OFPPF_10GB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_10GB_FD

OFPPF_40GB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_40GB_FD

OFPPF_100GB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_100GB_FD

OFPPF_1TB_FD

public static final OFPhysicalPort.OFPortFeatures OFPPF_1TB_FD

OFPPF_OTHER

public static final OFPhysicalPort.OFPortFeatures OFPPF_OTHER

OFPPF_COPPER

public static final OFPhysicalPort.OFPortFeatures OFPPF_COPPER

OFPPF_FIBER

public static final OFPhysicalPort.OFPortFeatures OFPPF_FIBER

OFPPF_AUTONEG

public static final OFPhysicalPort.OFPortFeatures OFPPF_AUTONEG

OFPPF_PAUSE

public static final OFPhysicalPort.OFPortFeatures OFPPF_PAUSE

OFPPF_PAUSE_ASYM

public static final OFPhysicalPort.OFPortFeatures OFPPF_PAUSE_ASYM
Field Detail

value

protected int value

speed

protected OFPhysicalPort.OFPortSpeed speed

isFullDuplex

protected boolean isFullDuplex

name

protected java.lang.String name
Method Detail

values

public static OFPhysicalPort.OFPortFeatures[] 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.OFPortFeatures c : OFPhysicalPort.OFPortFeatures.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.OFPortFeatures 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.OFPortFeatures> valueOf(int i)
Given a port features value, return the set of OFPortFeatures associated with it

Parameters:
i - port features bitmap
Returns:
Set

toBitmap

public static int toBitmap(java.util.Set<OFPhysicalPort.OFPortFeatures> features)
Given a set of OFPortFeatures enums, convert to bitmap value

Parameters:
configs - EnumSet
Returns:
bitmap value

getValue

public int getValue()
Returns:
the value

getPortSpeed

public OFPhysicalPort.OFPortSpeed getPortSpeed()
Returns:
the port speed

isFullDuplex

public boolean isFullDuplex()
Returns:
boolean about full duplex

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<OFPhysicalPort.OFPortFeatures>