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 class
Link.State
Representation of the link state, which applies primarily only to configured durable links, i.e.static class
Link.Type
Coarse representation of the link type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectPoint
dst()
Returns the link destination connection point.boolean
isExpected()
Indicates if the link was created from a predefined configuration.ConnectPoint
src()
Returns the link source connection point.Link.State
state()
Returns the link state.Link.Type
type()
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.
-
-