Class DirectedConnectoidImpl

    • Field Detail

      • directedConnectoidId

        protected long directedConnectoidId
        unique id across directed connectoids
      • accessEdgeSegment

        protected LinkSegment accessEdgeSegment
        the access point to an infrastructure layer
      • nodeAccessDownstream

        protected boolean nodeAccessDownstream
        the node access given an access edge segment is either up or downstream
    • Constructor Detail

      • DirectedConnectoidImpl

        protected DirectedConnectoidImpl​(IdGroupingToken idToken,
                                         LinkSegment accessLinkSegment,
                                         Zone accessZone,
                                         double length)
        Constructor
        Parameters:
        idToken - contiguous id generation within this group for instances of this class
        accessLinkSegment - the link segment in the network (layer) the connectoid connects with (possibly via its downstream node)
        accessZone - for the connectoid
        length - for the connection (not of the edge segment, but to access the zone)
      • DirectedConnectoidImpl

        public DirectedConnectoidImpl​(IdGroupingToken idToken,
                                      LinkSegment accessEdgeSegment)
        Constructor
        Parameters:
        idToken - contiguous id generation within this group for instances of this class
        accessEdgeSegment - the edge segment in the network (layer) the connectoid connects with (possibly via its downstream node)
      • DirectedConnectoidImpl

        protected DirectedConnectoidImpl​(DirectedConnectoidImpl connectoidImpl)
        Copy constructor
        Parameters:
        connectoidImpl - to copy
    • Method Detail

      • generateDirectedConnectoidId

        protected static long generateDirectedConnectoidId​(IdGroupingToken groupId)
        Generate directed connectoid id
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
        Returns:
        id of directed connectoid
      • setDirectedConnectoidId

        protected void setDirectedConnectoidId​(long directedConnectoidId)
        set the directed connectoid id
        Parameters:
        directedConnectoidId - to use
      • setAccessLinkSegment

        protected void setAccessLinkSegment​(LinkSegment accessEdgeSegment)
        Set the accessEdgeSegment
        Parameters:
        accessEdgeSegment - to use
      • isNodeAccessDownstream

        public boolean isNodeAccessDownstream()
        determine if the node access is downstream or not
        Specified by:
        isNodeAccessDownstream in interface DirectedConnectoid
        Returns:
        true when downstream, false otherwise, i.e., upstream
      • setNodeAccessDownstream

        public void setNodeAccessDownstream​(boolean nodeAccessDownstream)
        set if the node access is downstream or not
        Specified by:
        setNodeAccessDownstream in interface DirectedConnectoid
        Parameters:
        nodeAccessDownstream - true to set it downstream, false otherwise