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()
TopologyEdgelink in interface TopologyEdgepublic TopologyVertex src()
Edgesrc in interface Edge<TopologyVertex>public TopologyVertex dst()
Edgedst in interface Edge<TopologyVertex>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object