Package org.onosproject.net.topology
Class DefaultTopologyEdge
- java.lang.Object
-
- org.onosproject.net.topology.DefaultTopologyEdge
-
- All Implemented Interfaces:
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()Returns the edge destination vertex.booleanequals(Object obj)inthashCode()Linklink()Returns the associated infrastructure link.TopologyVertexsrc()Returns the edge source vertex.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()
Description copied from interface:EdgeReturns the edge source vertex.- Specified by:
srcin interfaceEdge<TopologyVertex>- Returns:
- source vertex
-
dst
public TopologyVertex dst()
Description copied from interface:EdgeReturns the edge destination vertex.- Specified by:
dstin interfaceEdge<TopologyVertex>- Returns:
- destination vertex
-
-