Class KpiLaneDirection

    • Constructor Detail

      • KpiLaneDirection

        public KpiLaneDirection​(LaneDataInterface lane,
                                KpiGtuDirectionality direction)
        Parameters:
        lane - LaneDataInterface; the lane
        direction - KpiGtuDirectionality; the direction to drive on this lane
    • Method Detail

      • getKpiDirection

        public final KpiGtuDirectionality getKpiDirection()
        Returns:
        the direction to drive on this lane
      • getPositionInDirection

        public final Length getPositionInDirection​(Length position)
        Returns the position with increasing value in the direction of travel, i.e. the node to the back of the vehicle is at x = 0 while the node in front of the vehicle is at x = lane.getLength(), irrespective of the design line direction.
        Parameters:
        position - Length; the position on the lane irrespective of the direction
        Returns:
        position with increasing value in the direction of travel
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object