Package org.onosproject.net
Enum Device.Type
- java.lang.Object
-
- java.lang.Enum<Device.Type>
-
- org.onosproject.net.Device.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Device.Type>
- Enclosing interface:
- Device
public static enum Device.Type extends java.lang.Enum<Device.Type>
Coarse classification of the type of the infrastructure device.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALANCER
CONTROLLER
FIBER_SWITCH
FIREWALL
IDS
IPS
MICROWAVE
OLS
OLT
ONU
OPTICAL_AMPLIFIER
OTHER
OTN
ROADM
ROADM_OTN
ROUTER
SERVER
SWITCH
TERMINAL_DEVICE
VIRTUAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Device.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Device.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SWITCH
public static final Device.Type SWITCH
-
ROUTER
public static final Device.Type ROUTER
-
ROADM
public static final Device.Type ROADM
-
OTN
public static final Device.Type OTN
-
ROADM_OTN
public static final Device.Type ROADM_OTN
-
FIREWALL
public static final Device.Type FIREWALL
-
BALANCER
public static final Device.Type BALANCER
-
IPS
public static final Device.Type IPS
-
IDS
public static final Device.Type IDS
-
CONTROLLER
public static final Device.Type CONTROLLER
-
VIRTUAL
public static final Device.Type VIRTUAL
-
FIBER_SWITCH
public static final Device.Type FIBER_SWITCH
-
MICROWAVE
public static final Device.Type MICROWAVE
-
OLT
public static final Device.Type OLT
-
ONU
public static final Device.Type ONU
-
OPTICAL_AMPLIFIER
public static final Device.Type OPTICAL_AMPLIFIER
-
OLS
public static final Device.Type OLS
-
TERMINAL_DEVICE
public static final Device.Type TERMINAL_DEVICE
-
OTHER
public static final Device.Type OTHER
-
SERVER
public static final Device.Type SERVER
-
-
Method Detail
-
values
public static Device.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 (Device.Type c : Device.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 Device.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
-
-