public static class OperationalPlan.AccelerationSegment extends OperationalPlan.Segment
Copyright (c) 2013-2019 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 |
---|
AccelerationSegment(Duration duration,
Acceleration acceleration) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
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() |
getDuration, getDurationSI
public AccelerationSegment(Duration duration, Acceleration acceleration)
duration
- Duration; the duration of the constant acceleration for this segmentacceleration
- Acceleration; the acceleration for the given durationpublic final int hashCode()
hashCode
in class OperationalPlan.Segment
public final boolean equals(Object obj)
equals
in class OperationalPlan.Segment
public final Duration timeAtDistance(Length distance)
distance
- Length; the distance for which the travel time has to be calculatedCopyright © 2014–2019 Delft University of Technology. All rights reserved.