Interface MacroscopicLink

    • Method Detail

      • getLinkSegment

        default MacroscopicLinkSegment getLinkSegment​(boolean directionAb)
        collect edgeSegment as something extending LinkSegment which is to be expected for any link. Convenience method for readability
        Specified by:
        getLinkSegment in interface Link
        Parameters:
        directionAb - the direction
        Returns:
        link segment in given direction
      • getLinkSegmentAb

        default MacroscopicLinkSegment getLinkSegmentAb()
        collect edgeSegment Ab as something extending LinkSegment which is to be expected for any link. Convenience method for readability
        Specified by:
        getLinkSegmentAb in interface Link
        Returns:
        link segment in given direction
      • getLinkSegmentBa

        default MacroscopicLinkSegment getLinkSegmentBa()
        collect edgeSegment Ba as something extending LinkSegment which is to be expected for any link. Convenience method for readability
        Specified by:
        getLinkSegmentBa in interface Link
        Returns:
        link segment in given direction
      • isModeAllowedOnAnySegment

        default boolean isModeAllowedOnAnySegment​(Mode mode)
        Verify if given mode is allowed on any of the two segments, where at least one segment must be registered to allow for a positive result
        Parameters:
        mode - to check
        Returns:
        true when a segment allows the mode, false otherwise
      • isModeAllowedOnAllSegments

        default boolean isModeAllowedOnAllSegments​(Mode mode)
        Verify if given mode is allowed on both segments, where at least one segment must be registered to allow for a positive result
        Parameters:
        mode - to check
        Returns:
        true both segments allow the mode, false otherwise
      • getLinkSegmentIfLinkIsOneWayForMode

        default MacroscopicLinkSegment getLinkSegmentIfLinkIsOneWayForMode​(Mode mode)
        Collect the one way link segment for the mode if the link is in fact one way. If it is not (for the mode), null is returned
        Parameters:
        mode - to check one-way characteristic
        Returns:
        edge segment that is one way for the mode, i.e., the other edge segment (if any) does not support this mode, null if this is not the case