Class AbstractArTask
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.ar.AbstractArTask
- All Implemented Interfaces:
Identifiable,ArTask,Task
- Direct Known Subclasses:
ArTaskCarFollowingExp,ArTaskConstant,ArTaskExponential,ArTaskHeadwayBased,ArTaskLaneChangingD,ArTaskRoadSideDistraction
Has id, task demand and anticipation reliance as internal variables.
Copyright (c) 2025-2025 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the level of anticipation reliance.voidsetAnticipationReliance(double anticipationReliance) Set anticipation reliance.toString()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
calculateTaskDemand, 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
-
Constructor Details
-
AbstractArTask
Constructor.- Parameters:
id- id
-
-
Method Details
-
setAnticipationReliance
public void setAnticipationReliance(double anticipationReliance) Description copied from interface:ArTaskSet anticipation reliance.- Specified by:
setAnticipationReliancein interfaceArTask- Parameters:
anticipationReliance- set anticipation reliance
-
getAnticipationReliance
public double getAnticipationReliance()Description copied from interface:ArTaskReturns the level of anticipation reliance.- Specified by:
getAnticipationReliancein interfaceArTask- Returns:
- anticipation reliance
-
toString
-