public interface Anticipation
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Anticipation.NeighborTriplet
Results from anticipation.
|
| Modifier and Type | Field and Description |
|---|---|
static Anticipation |
CONSTANT_ACCELERATION
Assume constant acceleration.
|
static Anticipation |
CONSTANT_SPEED
Assume constant speed.
|
static Anticipation |
NONE
Assume no anticipation.
|
| Modifier and Type | Method and Description |
|---|---|
Anticipation.NeighborTriplet |
anticipate(Anticipation.NeighborTriplet neighborTriplet,
org.djunits.value.vdouble.scalar.Duration duration,
org.djunits.value.vdouble.scalar.Length traveledDistance)
Anticipate movement.
|
org.djunits.value.vdouble.scalar.Length |
egoAnticipation(org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Duration duration)
Anticipate own movement.
|
static final Anticipation NONE
static final Anticipation CONSTANT_SPEED
static final Anticipation CONSTANT_ACCELERATION
Anticipation.NeighborTriplet anticipate(Anticipation.NeighborTriplet neighborTriplet, org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Length traveledDistance)
neighborTriplet - headway, speed and accelerationduration - durationtraveledDistance - distance the subject vehicle traveled during the anticipation timeorg.djunits.value.vdouble.scalar.Length egoAnticipation(org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Duration duration)
speed - current speedacceleration - current accelerationduration - anticipation timeCopyright © 2014–2018 Delft University of Technology. All rights reserved.