Class LaneChangeInfo

    • Constructor Detail

      • LaneChangeInfo

        public LaneChangeInfo​(int n,
                              Length remainingDistance,
                              boolean deadEnd,
                              LateralDirectionality lat)
        Constructor.
        Parameters:
        n - int; required number of lane changes
        remainingDistance - Length; remaining distance
        deadEnd - boolean; whether the need to change lane comes from a dead-end
        lat - LateralDirectionality; lateral directionality of required lane changes
    • Method Detail

      • getNumberOfLaneChanges

        public int getNumberOfLaneChanges()
        Returns the required number of lane changes.
        Returns:
        int; required number of lane changes
      • getRemainingDistance

        public Length getRemainingDistance()
        Return the remaining distance.
        Returns:
        Length; remaining distance
      • deadEnd

        public boolean deadEnd()
        Returns whether the need to change lane comes from a dead-end.
        Returns:
        boolean; whether the need to change lane comes from a dead-end
      • getLateralDirectionality

        public final LateralDirectionality getLateralDirectionality()
        Returns the lateral directionality of the required lane changes.
        Returns:
        LateralDirectionality; lateral directionality of the required lane changes