Class ArTaskCarFollowingExp
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.ar.AbstractArTask
org.opentrafficsim.road.gtu.lane.perception.mental.ar.ArTaskCarFollowingExp
- All Implemented Interfaces:
Supplier<ArTaskCarFollowingExp>,Identifiable,Stateless<ArTaskCarFollowingExp>,ArTask,Task
public final class ArTaskCarFollowingExp
extends AbstractArTask
implements Stateless<ArTaskCarFollowingExp>
Car-following task demand based on headway with exponential relationship.
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterTypeDurationCar-following task parameter.static final ArTaskCarFollowingExpSingleton instance. -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateTaskDemand(LanePerception perception) Calculates the task demand.get()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.ar.AbstractArTask
getAnticipationReliance, setAnticipationReliance, toStringMethods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
getId, getTaskDemand, getTaskDemandMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djutils.base.Identifiable
getIdMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.mental.Task
getTaskDemand, getTaskDemand
-
Field Details
-
HEXP
Car-following task parameter. -
SINGLETON
Singleton instance.
-
-
Method Details
-
calculateTaskDemand
Description copied from class:AbstractTaskCalculates the task demand.- Specified by:
calculateTaskDemandin classAbstractTask- Parameters:
perception- perception- Returns:
- task demand
- Throws:
ParameterException- if a parameter is missing or out of bounds
-
get
- Specified by:
getin interfaceStateless<ArTaskCarFollowingExp>- Specified by:
getin interfaceSupplier<ArTaskCarFollowingExp>
-