Class DefaultCaccSensors
java.lang.Object
org.opentrafficsim.road.gtu.perception.categories.neighbors.DefaultCaccSensors
- All Implemented Interfaces:
PerceivedGtuType
Default CACC sensors. This returns all information except desired speed for the first leader and CACC leaders. Remaining
leaders are provided null information.
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 classes/interfaces inherited from interface org.opentrafficsim.road.gtu.perception.categories.neighbors.PerceivedGtuType
PerceivedGtuType.AnticipationPerceivedGtuType -
Field Summary
Fields inherited from interface org.opentrafficsim.road.gtu.perception.categories.neighbors.PerceivedGtuType
WRAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePerceivedGtu(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.
-
Constructor Details
-
DefaultCaccSensors
public DefaultCaccSensors()Constructor.
-
-
Method Details
-
createPerceivedGtu
public 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.- Specified by:
createPerceivedGtuin interfacePerceivedGtuType- 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
-