Class LocalDistractionPerception
java.lang.Object
org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory<LaneBasedGtu,LanePerception>
org.opentrafficsim.road.gtu.perception.categories.LocalDistractionPerception
- All Implemented Interfaces:
Type<AbstractPerceptionCategory<LaneBasedGtu,,LanePerception>> PerceptionCategory<LaneBasedGtu,LanePerception>
public class LocalDistractionPerception
extends AbstractPerceptionCategory<LaneBasedGtu,LanePerception>
Perception category for distractions.
Copyright (c) 2024-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassInformation on distraction. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn distractions.Methods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
cacheAsString, computeIfAbsent, computeIfAbsent, computeIfAbsent, getGtu, getPerception, getTimestamp
-
Field Details
-
LOOKAHEAD
Look-ahead distance.
-
-
Constructor Details
-
LocalDistractionPerception
Constructor.- Parameters:
perception- perception.
-
-
Method Details
-
getDistractions
public PerceptionCollectable<LocalDistractionPerception.PerceivedLocalDistraction,LocalDistraction> getDistractions() throws ParameterExceptionReturn distractions.- Returns:
- distractions.
- Throws:
ParameterException- on missing parameter
-