Class DefaultTopologyEdge

    • 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
      • dst

        public TopologyVertex dst()
        Description copied from interface: Edge
        Returns the edge destination vertex.
        Specified by:
        dst in interface Edge<TopologyVertex>
        Returns:
        destination vertex
      • 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