public static class OperationalPlan.SpeedSegment extends OperationalPlan.Segment
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.
duration, v0| Constructor and Description |
|---|
SpeedSegment(Duration duration) |
| Modifier and Type | Method and Description |
|---|---|
Speed |
getSpeed() |
Duration |
timeAtDistance(Length distance)
Calculate the time it takes for the GTU to travel from the start of this Segment to the specified distance within
this Segment.
|
String |
toString() |
equals, getDuration, getDurationSI, hashCodepublic SpeedSegment(Duration duration)
duration - the duration of the constant speed for this segmentpublic final Speed getSpeed()
public final Duration timeAtDistance(Length distance)
distance - the distance for which the travel time has to be calculatedCopyright © 2014–2018 Delft University of Technology. All rights reserved.