public final class AnticipationInfo extends Object implements Serializable
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.
Constructor and Description |
---|
AnticipationInfo(Duration duration,
Speed endSpeed) |
Modifier and Type | Method and Description |
---|---|
static AnticipationInfo |
anticipateMovement(Length distance,
Speed initialSpeed,
Acceleration acceleration)
Returns info of the anticipation assuming constant acceleration.
|
static AnticipationInfo |
anticipateMovementFreeAcceleration(Length distance,
Speed initialSpeed,
Parameters parameters,
CarFollowingModel carFollowingModel,
SpeedLimitInfo speedLimitInfo,
Duration timeStep)
Returns info of the anticipation using free acceleration from car-following model.
|
static AnticipationInfo |
anticipateMovementSpeedLimited(Length distance,
Speed initialSpeed,
Acceleration acceleration,
Speed maxSpeed)
Returns info of the anticipation assuming constant acceleration, without exceeding maximum speed.
|
Duration |
getDuration() |
Speed |
getEndSpeed() |
String |
toString() |
public Duration getDuration()
public Speed getEndSpeed()
public static AnticipationInfo anticipateMovement(Length distance, Speed initialSpeed, Acceleration acceleration)
distance
- Length; distance to coverinitialSpeed
- Speed; initial speedacceleration
- Acceleration; (assumed) accelerationpublic static AnticipationInfo anticipateMovementSpeedLimited(Length distance, Speed initialSpeed, Acceleration acceleration, Speed maxSpeed)
distance
- Length; distance to coverinitialSpeed
- Speed; initial speedacceleration
- Acceleration; (assumed) accelerationmaxSpeed
- Speed; maximum speedpublic static AnticipationInfo anticipateMovementFreeAcceleration(Length distance, Speed initialSpeed, Parameters parameters, CarFollowingModel carFollowingModel, SpeedLimitInfo speedLimitInfo, Duration timeStep) throws ParameterException
distance
- Length; distance to coverinitialSpeed
- Speed; initial speedparameters
- Parameters; parameters of the anticipated GTUcarFollowingModel
- CarFollowingModel; car-following model of the anticipated GTUspeedLimitInfo
- SpeedLimitInfo; speed limit info of the anticipated GTUtimeStep
- Duration; time step to useParameterException
- if parameter is not definedCopyright © 2014–2019 Delft University of Technology. All rights reserved.