public abstract static class OperationalPlan.Segment extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and Description |
|---|---|
protected org.djunits.value.vdouble.scalar.Duration |
duration
The duration of the acceleration or speed for this segment.
|
protected org.djunits.value.vdouble.scalar.Speed |
v0
The initial speed for this segment.
|
| Constructor and Description |
|---|
Segment(org.djunits.value.vdouble.scalar.Duration duration) |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract double |
accelerationSI(double t)
Calculate the acceleration of a GTU in this segment after relative time t.
|
(package private) double |
distanceSI()
Calculate the distance covered by a GTU in this segment.
|
(package private) abstract double |
distanceSI(double t)
Calculate the distance covered by a GTU in this segment after relative time t.
|
(package private) abstract org.djunits.value.vdouble.scalar.Speed |
endSpeed()
Calculate the end speed for this segment.
|
boolean |
equals(Object obj) |
org.djunits.value.vdouble.scalar.Duration |
getDuration() |
double |
getDurationSI() |
int |
hashCode() |
(package private) void |
setV0(org.djunits.value.vdouble.scalar.Speed v0) |
(package private) abstract double |
speedSI(double t)
Calculate the speed of a GTU in this segment after relative time t.
|
(package private) abstract 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.
|
protected final org.djunits.value.vdouble.scalar.Duration duration
protected org.djunits.value.vdouble.scalar.Speed v0
public Segment(org.djunits.value.vdouble.scalar.Duration duration)
duration - the duration of the acceleration or speed for this segmentfinal void setV0(org.djunits.value.vdouble.scalar.Speed v0)
v0 - the initial speed of this segment; called from the Operational Plan constructor.public final org.djunits.value.vdouble.scalar.Duration getDuration()
public final double getDurationSI()
final double distanceSI()
abstract double distanceSI(double t)
t - the relative time since starting this segment for which to calculate the distance coveredabstract double speedSI(double t)
t - the relative time since starting this segment for which to calculate the speedabstract double accelerationSI(double t)
t - the relative time since starting this segment for which to calculate the accelerationabstract org.djunits.value.vdouble.scalar.Speed endSpeed()
abstract org.djunits.value.vdouble.scalar.Duration timeAtDistance(org.djunits.value.vdouble.scalar.Length distance)
distance - the distance for which the travel time has to be calculatedCopyright © 2014–2016 Delft University of Technology. All rights reserved.