Package org.onosproject.net
Enum Port.Type
- java.lang.Object
-
- java.lang.Enum<Port.Type>
-
- org.onosproject.net.Port.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COPPER
Signifies copper-based connectivity.FIBER
Signifies optical fiber-based connectivity.OCH
Signifies optical fiber-based Line-side port (called L-port).ODUCLT
Signifies optical fiber-based optical tributary port (called T-port).OMS
Signifies optical fiber-based WDM port (called W-port).OTU
Signifies optical fiber-based OTN port.PACKET
Signifies optical fiber-based packet port.VIRTUAL
Signifies virtual port.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Port.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Port.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COPPER
public static final Port.Type COPPER
Signifies copper-based connectivity.
-
FIBER
public static final Port.Type FIBER
Signifies optical fiber-based connectivity.
-
PACKET
public static final Port.Type PACKET
Signifies optical fiber-based packet port.
-
ODUCLT
public static final Port.Type ODUCLT
Signifies optical fiber-based optical tributary port (called T-port). The signal from the client side will be formed into a ITU G.709 (OTN) frame.
-
OCH
public static final Port.Type OCH
Signifies optical fiber-based Line-side port (called L-port).
-
OMS
public static final Port.Type OMS
Signifies optical fiber-based WDM port (called W-port). Optical Multiplexing Section (See ITU G.709).
-
VIRTUAL
public static final Port.Type VIRTUAL
Signifies virtual port.
-
OTU
public static final Port.Type OTU
Signifies optical fiber-based OTN port.
-
-
Method Detail
-
values
public static Port.Type[] 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 (Port.Type c : Port.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Port.Type 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 namejava.lang.NullPointerException
- if the argument is null
-
-