Class OperationalPlan.Segment
java.lang.Object
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OperationalPlan.AccelerationSegment,OperationalPlan.SpeedSegment
- Enclosing class:
- OperationalPlan
public abstract static class OperationalPlan.Segment extends Object implements Serializable
The segment of an operational plan contains a part of the speed profile of a movement in which some of the variables
determining movement (speed, acceleration) are 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
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)DurationgetDuration()doublegetDurationSI()inthashCode()
-
Field Details
-
Constructor Details
-
Segment
- Parameters:
duration- Duration; the duration of the acceleration or speed for this segment
-
-
Method Details
-
getDuration
- Returns:
- duration the duration of the acceleration or speed for this segment
-
getDurationSI
public final double getDurationSI()- Returns:
- duration the duration of the acceleration or speed for this segment
-
hashCode
public int hashCode() -
equals
-