public static enum DelayedNeighborsPerception.Anticipation extends Enum<DelayedNeighborsPerception.Anticipation>
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.
| Enum Constant and Description |
|---|
CONSTANT_ACCELERATION
Assume constant acceleration.
|
CONSTANT_SPEED
Assume constant speed.
|
NONE
Assume no anticipation.
|
| Modifier and Type | Method and Description |
|---|---|
abstract org.opentrafficsim.road.gtu.lane.perception.categories.DelayedNeighborsPerception.NeighborTriplet |
anticipate(org.opentrafficsim.road.gtu.lane.perception.categories.DelayedNeighborsPerception.NeighborTriplet neighborTriplet,
org.djunits.value.vdouble.scalar.Duration duration,
org.djunits.value.vdouble.scalar.Length traveledDistance)
Anticipate movement.
|
abstract 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 DelayedNeighborsPerception.Anticipation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DelayedNeighborsPerception.Anticipation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DelayedNeighborsPerception.Anticipation NONE
public static final DelayedNeighborsPerception.Anticipation CONSTANT_SPEED
public static final DelayedNeighborsPerception.Anticipation CONSTANT_ACCELERATION
public static DelayedNeighborsPerception.Anticipation[] values()
for (DelayedNeighborsPerception.Anticipation c : DelayedNeighborsPerception.Anticipation.values()) System.out.println(c);
public static DelayedNeighborsPerception.Anticipation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract org.opentrafficsim.road.gtu.lane.perception.categories.DelayedNeighborsPerception.NeighborTriplet anticipate(org.opentrafficsim.road.gtu.lane.perception.categories.DelayedNeighborsPerception.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 timepublic abstract 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)
speed - current speedacceleration - current accelerationduration - anticipation timeCopyright © 2014–2017 Delft University of Technology. All rights reserved.