Class OperationalPlan.SpeedSegment

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    OperationalPlan

    public static class OperationalPlan.SpeedSegment
    extends OperationalPlan.Segment
    The segment of an operational plan in which the speed is constant.

    Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
    All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 14, 2015
    Author:
    Alexander Verbraeck, Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • SpeedSegment

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

      • getSpeed

        public final Speed getSpeed()
        Returns:
        speed
      • timeAtDistance

        public final Duration timeAtDistance​(Length distance)