Package org.onosproject.net
Interface Link
-
- All Superinterfaces:
Annotated,NetworkResource,Projectable,Provided
- All Known Subinterfaces:
DisjointPath,EdgeLink,Path
- All Known Implementing Classes:
DefaultDisjointPath,DefaultEdgeLink,DefaultLink,DefaultPath
public interface Link extends Annotated, Provided, Projectable, NetworkResource
Abstraction of a network infrastructure link.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLink.StateRepresentation of the link state, which applies primarily only to configured durable links, i.e.static classLink.TypeCoarse representation of the link type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectPointdst()Returns the link destination connection point.booleanisExpected()Indicates if the link was created from a predefined configuration.ConnectPointsrc()Returns the link source connection point.Link.Statestate()Returns the link state.Link.Typetype()Returns the link type.-
Methods inherited from interface org.onosproject.net.Annotated
annotations
-
Methods inherited from interface org.onosproject.net.driver.Projectable
as, is, project
-
Methods inherited from interface org.onosproject.net.Provided
providerId
-
-
-
-
Method Detail
-
src
ConnectPoint src()
Returns the link source connection point.- Returns:
- link source connection point
-
dst
ConnectPoint dst()
Returns the link destination connection point.- Returns:
- link destination connection point
-
type
Link.Type type()
Returns the link type.- Returns:
- link type
-
state
Link.State state()
Returns the link state.- Returns:
- link state
-
isExpected
boolean isExpected()
Indicates if the link was created from a predefined configuration.- Returns:
- true if the link was created from a predefined configuration, false otherwise.
-
-