public final class AnticipationInfo 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.
Constructor and Description |
---|
AnticipationInfo(org.djunits.value.vdouble.scalar.Duration duration,
org.djunits.value.vdouble.scalar.Speed endSpeed) |
Modifier and Type | Method and Description |
---|---|
static AnticipationInfo |
anticipateMovement(org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.djunits.value.vdouble.scalar.Acceleration acceleration)
Returns info of the anticipation assuming constant acceleration.
|
static AnticipationInfo |
anticipateMovementFreeAcceleration(org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
CarFollowingModel carFollowingModel,
SpeedLimitInfo speedLimitInfo,
org.djunits.value.vdouble.scalar.Duration timeStep)
Returns info of the anticipation using free acceleration from car-following model.
|
static AnticipationInfo |
anticipateMovementSpeedLimited(org.djunits.value.vdouble.scalar.Length distance,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Speed maxSpeed)
Returns info of the anticipation assuming constant acceleration, without exceeding maximum speed.
|
org.djunits.value.vdouble.scalar.Duration |
getDuration() |
org.djunits.value.vdouble.scalar.Speed |
getEndSpeed() |
String |
toString() |
public AnticipationInfo(org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Speed endSpeed)
duration
- duration of movementendSpeed
- end speed of movementpublic org.djunits.value.vdouble.scalar.Duration getDuration()
public org.djunits.value.vdouble.scalar.Speed getEndSpeed()
public static AnticipationInfo anticipateMovement(org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.djunits.value.vdouble.scalar.Acceleration acceleration)
distance
- distance to coverinitialSpeed
- initial speedacceleration
- (assumed) accelerationpublic static AnticipationInfo anticipateMovementSpeedLimited(org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Speed maxSpeed)
distance
- distance to coverinitialSpeed
- initial speedacceleration
- (assumed) accelerationmaxSpeed
- maximum speedpublic static AnticipationInfo anticipateMovementFreeAcceleration(org.djunits.value.vdouble.scalar.Length distance, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, CarFollowingModel carFollowingModel, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Duration timeStep) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
distance
- distance to coverinitialSpeed
- initial speedbehavioralCharacteristics
- behavioral characteristics of the anticipated GTUcarFollowingModel
- car-following model of the anticipated GTUspeedLimitInfo
- speed limit info of the anticipated GTUtimeStep
- time step to useorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter is not definedCopyright © 2014–2016 Delft University of Technology. All rights reserved.