Class ChannelTaskConflict
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
org.opentrafficsim.road.gtu.lane.perception.mental.channel.ChannelTaskConflict
- All Implemented Interfaces:
Identifiable,ChannelTask,Task
Task demand for a group of conflicts pertaining to the same conflicting road. This is defined as
exp(-max(T_ego, min(T_conf))/h) where T_ego is the ego time until the first conflict, T_conf is the
time until the respective conflict of a conflicting vehicle and h is the car-following task parameter that scales it.
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 ParameterTypeDurationConflicting decay parameter.static final ParameterTypeDurationEgo decay parameter.static final ParameterTypeLengthLook-ahead distance.static final Function<LanePerception,Set<ChannelTask>> Standard supplier that supplies a task per grouped set of conflicts based on common upstream nodes.Fields inherited from interface org.opentrafficsim.road.gtu.lane.perception.mental.channel.ChannelTask
FRONT, IN_VEHICLE, LEFT, REAR, RIGHT -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateTaskDemand(LanePerception perception) Calculates the task demand.Return the channel this task pertains to.getId()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.mental.AbstractTask
getTaskDemand, getTaskDemandMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.road.gtu.lane.perception.mental.Task
getTaskDemand, getTaskDemand
-
Field Details
-
LOOKAHEAD
Look-ahead distance. -
HEGO
Ego decay parameter. -
HCONF
Conflicting decay parameter. -
SUPPLIER
Standard supplier that supplies a task per grouped set of conflicts based on common upstream nodes. This also adds a scanning task demand to each of these channels.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable- Overrides:
getIdin classAbstractTask
-
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
-