Class ArcForward


  • class ArcForward
    extends Arc
    Implementation of Arc that represents a "forward" arc in a graph, this is the arc implementation that stores data relative to the arc.
    • Field Detail

      • origin

        private final Node origin
      • destination

        private final Node destination
      • length

        private final float length
      • points

        private final java.util.List<Point> points
    • Constructor Detail

      • ArcForward

        protected ArcForward​(Node origin,
                             Node dest,
                             float length,
                             RoadInformation roadInformation,
                             java.util.List<Point> points)
        Create a new ArcForward with the given attributes.
        Parameters:
        origin - Origin of this arc.
        dest - Destination of this arc.
        length - Length of this arc (in meters).
        roadInformation - Road information for this arc.
        points - Points representing this arc.
    • Method Detail

      • getOrigin

        public Node getOrigin()
        Specified by:
        getOrigin in class Arc
        Returns:
        Origin node of this arc.
      • getDestination

        public Node getDestination()
        Specified by:
        getDestination in class Arc
        Returns:
        Destination node of this arc.
      • getLength

        public float getLength()
        Specified by:
        getLength in class Arc
        Returns:
        Length of this arc, in meters.
      • getPoints

        public java.util.List<Point> getPoints()
        Specified by:
        getPoints in class Arc
        Returns:
        Points representing segments of this arc.