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,
Duration duration,
Length traveledDistance)
Anticipate movement.
|
Length |
egoAnticipation(Speed speed,
Acceleration acceleration,
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, Duration duration, Length traveledDistance)
neighborTriplet - headway, speed and accelerationduration - durationtraveledDistance - distance the subject vehicle traveled during the anticipation timeLength egoAnticipation(Speed speed, Acceleration acceleration, Duration duration)
speed - current speedacceleration - current accelerationduration - anticipation timeCopyright © 2014–2018 Delft University of Technology. All rights reserved.