public static class OperationalPlan.AccelerationSegment extends OperationalPlan.Segment
Copyright (c) 2013-2015 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(org.djunits.value.vdouble.scalar.Duration duration,
org.djunits.value.vdouble.scalar.Acceleration acceleration) |
| Modifier and Type | Method and Description |
|---|---|
(package private) double |
accelerationSI(double t)
Calculate the acceleration of a GTU in this segment after relative time t.
|
(package private) double |
distanceSI(double t)
Calculate the distance covered by a GTU in this segment after relative time t.
|
(package private) org.djunits.value.vdouble.scalar.Speed |
endSpeed()
Calculate the end speed for this segment.
|
boolean |
equals(Object obj) |
int |
hashCode() |
(package private) double |
speedSI(double t)
Calculate the speed of a GTU in this segment after relative time t.
|
org.djunits.value.vdouble.scalar.Duration |
timeAtDistance(org.djunits.value.vdouble.scalar.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() |
distanceSI, getDuration, getDurationSI, setV0public AccelerationSegment(org.djunits.value.vdouble.scalar.Duration duration,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
duration - the duration of the constant acceleration for this segmentacceleration - the acceleration for the given durationfinal double distanceSI(double t)
distanceSI in class OperationalPlan.Segmentt - the relative time since starting this segment for which to calculate the distance coveredfinal double accelerationSI(double t)
accelerationSI in class OperationalPlan.Segmentt - the relative time since starting this segment for which to calculate the accelerationfinal double speedSI(double t)
speedSI in class OperationalPlan.Segmentt - the relative time since starting this segment for which to calculate the speedfinal org.djunits.value.vdouble.scalar.Speed endSpeed()
endSpeed in class OperationalPlan.Segmentpublic final int hashCode()
hashCode in class OperationalPlan.Segmentpublic final boolean equals(Object obj)
equals in class OperationalPlan.Segmentpublic final org.djunits.value.vdouble.scalar.Duration timeAtDistance(org.djunits.value.vdouble.scalar.Length distance)
timeAtDistance in class OperationalPlan.Segmentdistance - the distance for which the travel time has to be calculatedCopyright © 2014–2016 Delft University of Technology. All rights reserved.