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.- 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)Construct a new SpeedSegment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpeedgetSpeed()Retrieve the speed during this SpeedSegment.DurationtimeAtDistance(Length distance)StringtoString()-
Methods inherited from class org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment
equals, getDuration, getDurationSI, hashCode
-
-
-
-
Constructor Detail
-
SpeedSegment
public SpeedSegment(Duration duration)
Construct a new SpeedSegment.- Parameters:
duration- Duration; the duration of the constant speed for this segment
-
-