public enum PortFeature extends Enum<PortFeature> implements OfpBitmapEnum
Enum Constant and Description |
---|
AUTONEG
Auto-negotiation; Since 1.0.
|
COPPER
Copper medium; Since 1.0.
|
FIBER
Fiber medium; Since 1.0.
|
PAUSE
Pause; Since 1.0.
|
PAUSE_ASYM
Asymmetric pause; Since 1.0.
|
RATE_100GB_FD
100 Gb full-duplex rate support; Since 1.1.
|
RATE_100MB_FD
100 Mb full-duplex rate support; Since 1.0.
|
RATE_100MB_HD
100 Mb half-duplex rate support; Since 1.0.
|
RATE_10GB_FD
10 Gb full-duplex rate support; Since 1.0.
|
RATE_10MB_FD
10 Mb full-duplex rate support; Since 1.0.
|
RATE_10MB_HD
10 Mb half-duplex rate support; Since 1.0.
|
RATE_1GB_FD
1 Gb full-duplex rate support; Since 1.0.
|
RATE_1GB_HD
1 Gb half-duplex rate support; Since 1.0.
|
RATE_1TB_FD
1 Tb full-duplex rate support; Since 1.1.
|
RATE_40GB_FD
40 Gb full-duplex rate support; Since 1.1.
|
RATE_OTHER
Other rate, not in the list; Since 1.1.
|
Modifier and Type | Method and Description |
---|---|
int |
getBit(ProtocolVersion pv)
Returns the bit value for the constant, under the given protocol
version.
|
String |
toDisplayString()
Returns a string representation of this constant suitable for
display.
|
String |
toString() |
static PortFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortFeature RATE_10MB_HD
public static final PortFeature RATE_10MB_FD
public static final PortFeature RATE_100MB_HD
public static final PortFeature RATE_100MB_FD
public static final PortFeature RATE_1GB_HD
public static final PortFeature RATE_1GB_FD
public static final PortFeature RATE_10GB_FD
public static final PortFeature RATE_40GB_FD
public static final PortFeature RATE_100GB_FD
public static final PortFeature RATE_1TB_FD
public static final PortFeature RATE_OTHER
public static final PortFeature COPPER
public static final PortFeature FIBER
public static final PortFeature AUTONEG
public static final PortFeature PAUSE
public static final PortFeature PAUSE_ASYM
public static PortFeature[] values()
for (PortFeature c : PortFeature.values()) System.out.println(c);
public static PortFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getBit(ProtocolVersion pv)
OfpBitmapEnum
getBit
in interface OfpBitmapEnum
pv
- the protocol versionpublic String toString()
toString
in class Enum<PortFeature>
public String toDisplayString()
PAUSE_ASYM.toDisplayString()
returns:
"Asymmetric pause"
toDisplayString
in interface OfpBitmapEnum
Copyright © 2015. All Rights Reserved.