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 TopologyVertexdst()booleanequals(Object obj)inthashCode()Linklink()Returns the associated infrastructure link.TopologyVertexsrc()StringtoString()
-
-
-
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:TopologyEdgeReturns the associated infrastructure link.- Specified by:
linkin interfaceTopologyEdge- Returns:
- backing infrastructure link
-
src
public TopologyVertex src()
- Specified by:
srcin interfaceorg.onlab.graph.Edge<TopologyVertex>
-
dst
public TopologyVertex dst()
- Specified by:
dstin interfaceorg.onlab.graph.Edge<TopologyVertex>
-
-