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.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DurationgetDuration()Retrieve the duration of this Segment.doublegetDurationSI()Retrieve the duration of this Segment in the SI unit (i.c.inthashCode()
-
-
-
Constructor Detail
-
Segment
public Segment(Duration duration)
Construct a new Segment.- Parameters:
duration- Duration; the duration of the the new segment
-
-
Method Detail
-
getDuration
public final Duration getDuration()
Retrieve the duration of this Segment.- Returns:
- Duration; the duration of this segment
-
getDurationSI
public final double getDurationSI()
Retrieve the duration of this Segment in the SI unit (i.c. seconds).- Returns:
- Duration; the duration of the acceleration or speed for this segment
-
-