Package org.onosproject.net.topology
Class DefaultTopologyEdge
- java.lang.Object
-
- org.onosproject.net.topology.DefaultTopologyEdge
-
- All Implemented Interfaces:
org.onlab.graph.Edge<TopologyVertex>
,TopologyEdge
public class DefaultTopologyEdge extends Object implements TopologyEdge
Implementation of the topology edge backed by a link.
-
-
Constructor Summary
Constructors Constructor Description DefaultTopologyEdge(TopologyVertex src, TopologyVertex dst, Link link)
Creates a new topology edge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopologyVertex
dst()
boolean
equals(Object obj)
int
hashCode()
Link
link()
Returns the associated infrastructure link.TopologyVertex
src()
String
toString()
-
-
-
Constructor Detail
-
DefaultTopologyEdge
public DefaultTopologyEdge(TopologyVertex src, TopologyVertex dst, Link link)
Creates a new topology edge.- Parameters:
src
- source vertexdst
- destination vertexlink
- infrastructure link
-
-
Method Detail
-
link
public Link link()
Description copied from interface:TopologyEdge
Returns the associated infrastructure link.- Specified by:
link
in interfaceTopologyEdge
- Returns:
- backing infrastructure link
-
src
public TopologyVertex src()
- Specified by:
src
in interfaceorg.onlab.graph.Edge<TopologyVertex>
-
dst
public TopologyVertex dst()
- Specified by:
dst
in interfaceorg.onlab.graph.Edge<TopologyVertex>
-
-