Class ArTaskLaneChanging
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.ArTaskHeadwayBased
org.opentrafficsim.road.gtu.lane.perception.mental.ar.ArTaskLaneChanging
- All Implemented Interfaces:
Supplier<ArTaskLaneChanging>,Identifiable,Stateless<ArTaskLaneChanging>,ArTask,Task
public final class ArTaskLaneChanging
extends ArTaskHeadwayBased
implements Stateless<ArTaskLaneChanging>
Lane changing task based on car-following (as gap-acceptance proxy), and an underlying consideration to include adjacent
lanes.
Copyright (c) 2013-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 -
Method Summary
Modifier and TypeMethodDescriptionget()protected DurationgetHeadway(LanePerception perception, LaneBasedGtu gtu, Parameters parameters) Returns a collector for the task demand.Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.ar.ArTaskHeadwayBased
calculateTaskDemand, getSpeedMethods 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.
-
-
Method Details
-
getHeadway
protected Duration getHeadway(LanePerception perception, LaneBasedGtu gtu, Parameters parameters) throws ParameterException Description copied from class:ArTaskHeadwayBasedReturns a collector for the task demand.- Specified by:
getHeadwayin classArTaskHeadwayBased- Parameters:
perception- perceptiongtu- gtuparameters- parameters- Returns:
- headway,
nullof none. - Throws:
ParameterException- on invalid parameter
-
get
- Specified by:
getin interfaceStateless<ArTaskLaneChanging>- Specified by:
getin interfaceSupplier<ArTaskLaneChanging>
-