Class ChannelTaskAcceleration
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.channel.ChannelTaskAcceleration
- All Implemented Interfaces:
Supplier<ChannelTaskAcceleration>,Identifiable,Stateless<ChannelTaskAcceleration>,ChannelTask,Task
public class ChannelTaskAcceleration
extends AbstractTask
implements ChannelTask, Stateless<ChannelTaskAcceleration>
Task demand for acceleration from stand-still or low speeds. This mostly functions to increase attention when leaving a
queue. This is defined as the maximum of
max(0,-dv)/v0 * (1-s/x0), where dv is the approaching speed to a
leader, v0 is the desired speed, s is the distance to the leader and x0 is the look-ahead distance.
Copyright (c) 2024-2025 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 ChannelTaskAccelerationSingleton instance.static final Function<LanePerception,Set<ChannelTask>> Standard supplier that supplies a single instance of the acceleration task.static final ParameterTypeSpeedSpeed threshold below which traffic is considered congested.static final ParameterTypeLengthDistance discount range.Fields inherited from interface org.opentrafficsim.road.gtu.lane.perception.mental.channel.ChannelTask
FRONT, IN_VEHICLE, LEFT, REAR, RIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateTaskDemand(LanePerception perception) Calculates the task demand.get()Return the channel this task pertains to.Methods 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, toString, 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
-
X0
Distance discount range. -
VCONG
Speed threshold below which traffic is considered congested. -
SINGLETON
Singleton instance. -
SUPPLIER
Standard supplier that supplies a single instance of the acceleration task.
-
-
Constructor Details
-
ChannelTaskAcceleration
public ChannelTaskAcceleration()Constructor.
-
-
Method Details
-
get
- Specified by:
getin interfaceStateless<ChannelTaskAcceleration>- Specified by:
getin interfaceSupplier<ChannelTaskAcceleration>
-
getChannel
Description copied from interface:ChannelTaskReturn the channel this task pertains to.- Specified by:
getChannelin interfaceChannelTask- Returns:
- channel this task pertains to.
-
calculateTaskDemand
Description copied from class:AbstractTaskCalculates the task demand.- Specified by:
calculateTaskDemandin classAbstractTask- Parameters:
perception- perception- Returns:
- task demand
-