Class OperationalPlan.SpeedSegment

    • Constructor Detail

      • SpeedSegment

        public SpeedSegment​(Duration duration)
        Construct a new SpeedSegment.
        Parameters:
        duration - Duration; the duration of the constant speed for this segment
    • Method Detail

      • getSpeed

        public final Speed getSpeed()
        Retrieve the speed during this SpeedSegment.
        Returns:
        Speed; the speed during this SpeedSegment
      • timeAtDistance

        public final Duration timeAtDistance​(Length distance)