Interface Anticipation
public interface Anticipation
Form of anticipation.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnticipationAssume constant acceleration.static final AnticipationAssume constant speed.static final AnticipationAssume no anticipation. -
Method Summary
Modifier and TypeMethodDescriptionanticipate(NeighborTriplet neighborTriplet, org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Length traveledDistanceReference, boolean downstream) Anticipate movement.
-
Field Details
-
NONE
Assume no anticipation. -
CONSTANT_SPEED
Assume constant speed. -
CONSTANT_ACCELERATION
Assume constant acceleration.
-
-
Method Details
-
anticipate
NeighborTriplet anticipate(NeighborTriplet neighborTriplet, org.djunits.value.vdouble.scalar.Duration duration, org.djunits.value.vdouble.scalar.Length traveledDistanceReference, boolean downstream) Anticipate movement.- Parameters:
neighborTriplet- headway, speed and accelerationduration- durationtraveledDistanceReference- distance the reference object traveled during the anticipation timedownstream- whether the perceived GTU is downstream- Returns:
- anticipated info
-