Class ArTaskLaneChangingD
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.ArTaskLaneChangingD
- All Implemented Interfaces:
Supplier<ArTaskLaneChangingD>,Identifiable,Stateless<ArTaskLaneChangingD>,ArTask,Task
public final class ArTaskLaneChangingD
extends AbstractArTask
implements Stateless<ArTaskLaneChangingD>
Lane change task demand depending on lane change desire.
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
Fields -
Constructor Summary
Constructors -
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
-
SINGLETON
Singleton instance.
-
-
Constructor Details
-
ArTaskLaneChangingD
public ArTaskLaneChangingD()Constructor.
-
-
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<ArTaskLaneChangingD>- Specified by:
getin interfaceSupplier<ArTaskLaneChangingD>
-