public class DefaultTopologyEdge extends java.lang.Object implements TopologyEdge
Constructor and Description |
---|
DefaultTopologyEdge(TopologyVertex src,
TopologyVertex dst,
Link link)
Creates a new topology edge.
|
Modifier and Type | Method and Description |
---|---|
TopologyVertex |
dst()
Returns the edge destination vertex.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
Link |
link()
Returns the associated infrastructure link.
|
TopologyVertex |
src()
Returns the edge source vertex.
|
java.lang.String |
toString() |
public DefaultTopologyEdge(TopologyVertex src, TopologyVertex dst, Link link)
src
- source vertexdst
- destination vertexlink
- infrastructure linkpublic Link link()
TopologyEdge
link
in interface TopologyEdge
public TopologyVertex src()
Edge
src
in interface Edge<TopologyVertex>
public TopologyVertex dst()
Edge
dst
in interface Edge<TopologyVertex>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object