Interface DirectedConnectoid

  • All Superinterfaces:
    Comparable<Idable>, Connectoid, ExternalIdable, Idable, Iterable<Zone>
    All Known Implementing Classes:
    DirectedConnectoidImpl

    public interface DirectedConnectoid
    extends Connectoid
    A directed connectoid is referring to an edge segment in a network (layer) which is directed for access hence, the connectoid also being directed TODO: we can potentially get rid of UndirectedConnectoid and let DirectedConnectoid extend from base since they now both rely on accessNodes
    Author:
    markr
    • Field Detail

      • DEFAULT_NODE_ACCESS_DOWNSTREAM

        static final boolean DEFAULT_NODE_ACCESS_DOWNSTREAM
        default node access is set to the downstream end of a link segment
        See Also:
        Constant Field Values
    • Method Detail

      • getAccessLinkSegment

        LinkSegment getAccessLinkSegment()
        the edge segment that provides access
        Returns:
        access edge segment
      • setNodeAccessDownstream

        void setNodeAccessDownstream​(boolean nodeAccessDownstream)
        set if the node access is downstream or not
        Parameters:
        nodeAccessDownstream - true to set it downstream, false otherwise
      • isNodeAccessDownstream

        boolean isNodeAccessDownstream()
        determine if the node access is downstream or not
        Returns:
        true when downstream, false otherwise, i.e., upstream
      • getAccessNode

        default Node getAccessNode()
        Based on the edge segment and the location (upstream/downstream) of the access point, collect the access node
        Returns:
        accessNode to use