Class LinkDirection

    • Constructor Detail

      • LinkDirection

        public LinkDirection​(Link link,
                             GtuDirectionality direction)
        Construct a new LinkDirection.
        Parameters:
        link - Link; the link
        direction - GtuDirectionality; the direction on the link, with or against the design line
    • Method Detail

      • getLink

        public final Link getLink()
        Retrieve the link.
        Returns:
        Link; the link
      • getId

        public String getId()
        Retrieve the id of the link.
        Returns:
        String; link id
        See Also:
        Link.getId()
      • getLinkType

        public LinkType getLinkType()
        Retrieve the link type of the link.
        Returns:
        LinkType; link type
        See Also:
        Link.getLinkType()
      • getLength

        public Length getLength()
        Retrieve the length of the link.
        Returns:
        Length; the length of the link
        See Also:
        Link.getLength()
      • getDirection

        public final GtuDirectionality getDirection()
        Retrieve the direction of the link.
        Returns:
        GTUDirectionality; the direction of the link
      • getNodeTo

        public final Node getNodeTo()
        Retrieve the destination node of this LinkDirection.
        Returns:
        Node; the destination node of this LinkDirection
      • getNodeFrom

        public final Node getNodeFrom()
        Retrieve the origin node of this LinkDirection.
        Returns:
        Node; the origin node of the LinkDirection
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object