Class ConnectedEdgeImpl

  • All Implemented Interfaces:
    ConnectedEdge

    public class ConnectedEdgeImpl
    extends Object
    implements ConnectedEdge
    This Class implements the Connected Edge used by the Connected Graph for path computation algorithms.
    Author:
    Olivier Dugeon, Philippe Niger
    • Constructor Detail

      • ConnectedEdgeImpl

        public ConnectedEdgeImpl​(@NonNull Long key)
      • ConnectedEdgeImpl

        public ConnectedEdgeImpl​(@NonNull Edge edge)
    • Method Detail

      • disconnectSource

        public void disconnectSource()
        Disconnect source Connected Vertex.
      • disconnectDestination

        public void disconnectDestination()
        Disconnect destination Connected Vertex.
      • disconnect

        public void disconnect()
        Disconnect both source and destination Connected Vertices.
      • setEdge

        public ConnectedEdgeImpl setEdge​(Edge edge)
        Set associated Edge to this Connected Edge.
        Parameters:
        edge - Edge
      • getKey

        public @NonNull Long getKey()
        Description copied from interface: ConnectedEdge
        Returns unique key associated to this Connected Edge.
        Specified by:
        getKey in interface ConnectedEdge
        Returns:
        Edge Key
      • getSource

        public ConnectedVertex getSource()
        Description copied from interface: ConnectedEdge
        Returns the source Connected Vertex from the Connected Graph associated to this Connected Edge.
        Specified by:
        getSource in interface ConnectedEdge
        Returns:
        Source Connected Vertex
      • getDestination

        public ConnectedVertex getDestination()
        Description copied from interface: ConnectedEdge
        Returns the destination Connected Vertex from the Connected Graph associated to this Connected Edge.
        Specified by:
        getDestination in interface ConnectedEdge
        Returns:
        Destination Connected Vertex
      • getEdge

        public Edge getEdge()
        Description copied from interface: ConnectedEdge
        Returns the Edge from the Graph associated to this connection.
        Specified by:
        getEdge in interface ConnectedEdge
        Returns:
        Edge associated to this connection
      • toString

        public String toString()
        Returns the name of the associated Edge if set or the interface address otherwise.
        Overrides:
        toString in class Object
        Returns:
        Edge name or interface address