Class 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 Detail

      • DefaultTopologyEdge

        public DefaultTopologyEdge​(TopologyVertex src,
                                   TopologyVertex dst,
                                   Link link)
        Creates a new topology edge.
        Parameters:
        src - source vertex
        dst - destination vertex
        link - infrastructure link
    • Method Detail

      • link

        public Link link()
        Description copied from interface: TopologyEdge
        Returns the associated infrastructure link.
        Specified by:
        link in interface TopologyEdge
        Returns:
        backing infrastructure link
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object