Package org.onosproject.net
Enum Link.Type
- java.lang.Object
- 
- java.lang.Enum<Link.Type>
- 
- org.onosproject.net.Link.Type
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Link.Type>
 - Enclosing interface:
- Link
 
 public static enum Link.Type extends Enum<Link.Type> Coarse representation of the link type.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description DIRECTSignifies that this is a direct single-segment link.EDGESignifies that this link is an edge, i.e.INDIRECTSignifies that this link is potentially comprised from multiple underlying segments or hops, and as such should be used to tag links traversing optical paths, tunnels or intervening 'dark' switches.OPTICALSignifies that this link is realized by fiber (either single channel or WDM).TUNNELSignifies that this link represents a logical link backed by some form of a tunnel, e.g., GRE, MPLS, ODUk, OCH.VIRTUALSignifies that this link is a virtual link or a pseudo-wire.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Link.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Link.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
DIRECTpublic static final Link.Type DIRECT Signifies that this is a direct single-segment link.
 - 
INDIRECTpublic static final Link.Type INDIRECT Signifies that this link is potentially comprised from multiple underlying segments or hops, and as such should be used to tag links traversing optical paths, tunnels or intervening 'dark' switches.
 - 
EDGEpublic static final Link.Type EDGE Signifies that this link is an edge, i.e. host link.
 - 
TUNNELpublic static final Link.Type TUNNEL Signifies that this link represents a logical link backed by some form of a tunnel, e.g., GRE, MPLS, ODUk, OCH.
 - 
OPTICALpublic static final Link.Type OPTICAL Signifies that this link is realized by fiber (either single channel or WDM).
 - 
VIRTUALpublic static final Link.Type VIRTUAL Signifies that this link is a virtual link or a pseudo-wire.
 
- 
 - 
Method Detail- 
valuespublic static Link.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 (Link.Type c : Link.Type.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Link.Type valueOf(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:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-