Class OperationalPlan.SpeedSegment
java.lang.Object
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
org.opentrafficsim.core.gtu.plan.operational.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-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
duration, v0 -
Constructor Summary
Constructors Constructor Description SpeedSegment(Duration duration) -
Method Summary
Methods inherited from class org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
equals, getDuration, getDurationSI, hashCode
-
Constructor Details
-
SpeedSegment
- Parameters:
duration- Duration; the duration of the constant speed for this segment
-
-
Method Details
-
getSpeed
- Returns:
- speed
-
timeAtDistance
-
toString
-