Interface Edge

    • Method Detail

      • getId

        long getId()
        Return id of this instance. This id is expected to be generated using the org.planit.utils.misc.IdGenerator
        Returns:
        id of this Edge object
      • getLength

        double getLength()
        Return length of this edge in km
        Returns:
        length of this edge in km
      • getVertexA

        Vertex getVertexA()
        Vertex A of the edge
        Returns:
        vertex A
      • getVertexB

        Vertex getVertexB()
        Vertex B of the edge
        Returns:
        vertex B
      • getName

        String getName()
        collect the name of the edge
        Returns:
        the name
      • addInputProperty

        void addInputProperty​(String key,
                              Object value)
        Add a property from the original input that is not part of the readily available link members
        Parameters:
        key - key (name) of input property
        value - value of input property
      • getInputProperty

        Object getInputProperty​(String key)
        Get input property by its key
        Parameters:
        key - key of input property
        Returns:
        value retrieved value of input property
      • getEdgeSegmentAB

        EdgeSegment getEdgeSegmentAB()
        Edge segment in the direction from A to B
        Returns:
        edge segment AB
      • getEdgeSegmentBA

        EdgeSegment getEdgeSegmentBA()
        Edge segment in the direction from B to A
        Returns:
        edge segment BA