public static class OperationalPlan.SpeedSegment 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 |
|---|
SpeedSegment(org.djunits.value.vdouble.scalar.Duration duration) |
| 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.
|
org.djunits.value.vdouble.scalar.Speed |
getSpeed() |
(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, equals, getDuration, getDurationSI, hashCode, setV0public SpeedSegment(org.djunits.value.vdouble.scalar.Duration duration)
duration - the duration of the constant speed for this segmentfinal 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 org.djunits.value.vdouble.scalar.Speed getSpeed()
public 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.