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-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 14, 2015
All rights reserved.
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DurationgetDuration()doublegetDurationSI()inthashCode()
-
-
-
Constructor Detail
-
Segment
public Segment(Duration duration)
- Parameters:
duration- Duration; the duration of the acceleration or speed for this segment
-
-
Method Detail
-
getDuration
public final Duration 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
-
-