Interface PerceivedGtuType
- All Known Implementing Classes:
DefaultCaccSensors,PerceivedGtuType.AnticipationPerceivedGtuType
public interface PerceivedGtuType
Whether a GTU needs to be wrapped, or information should be copied for later and unaltered use.
Copyright (c) 2013-2026 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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classClass for neighbors perceived with estimation and anticipation. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PerceivedGtucreatePerceivedGtu(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) Creates a perceived object from a GTU, downstream or upstream.
-
Field Details
-
WRAP
Default wrap implementation.
-
-
Method Details
-
createPerceivedGtu
default PerceivedGtu createPerceivedGtu(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) throws ParameterException Creates a perceived object from a GTU, downstream or upstream. The default implementation figures out from distance whether a parallel GTU should be created.- Parameters:
perceivingGtu- perceiving GTUreference- reference object to which distance is given (and to which perception errors should apply, e.g. Conflict)perceivedGtu- perceived GTUdistance- distancedownstream- downstream (or upstream) neighbor- Returns:
- perception object from a gtu
- Throws:
ParameterException- on invalid parameter value or missing parameter
-