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 java.lang.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(java.lang.Object obj)inthashCode()Linklink()Returns the associated infrastructure link.TopologyVertexsrc()java.lang.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>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-