Class CaccPerception
- java.lang.Object
-
- org.opentrafficsim.base.Type<AbstractPerceptionCategory<G,P>>
-
- org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory<LaneBasedGTU,LanePerception>
-
- org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
-
- org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.CaccPerception
-
- All Implemented Interfaces:
Serializable
,PerceptionCategory<LaneBasedGTU,LanePerception>
,LongitudinalControllerPerception
public class CaccPerception extends LaneBasedAbstractPerceptionCategory implements LongitudinalControllerPerception
CACC perception.Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Mar 12, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION
-
Fields inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.LongitudinalControllerPerception
DELAY, RANGE
-
-
Constructor Summary
Constructors Constructor Description CaccPerception(LanePerception perception)
Constructor using default sensors with zero delay.CaccPerception(LanePerception perception, HeadwayGtuType sensors)
Constructor using specified sensors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerceptionCollectable<HeadwayGTU,LaneBasedGTU>
getLeaders()
Returns the leaders.void
updateAll()
-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsent
-
Methods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestamp
-
-
-
-
Constructor Detail
-
CaccPerception
public CaccPerception(LanePerception perception)
Constructor using default sensors with zero delay.- Parameters:
perception
- LanePerception; perception
-
CaccPerception
public CaccPerception(LanePerception perception, HeadwayGtuType sensors)
Constructor using specified sensors.- Parameters:
perception
- LanePerception; perceptionsensors
- HeadwayGtuType; onboard sensor information
-
-
Method Detail
-
updateAll
public void updateAll() throws GTUException, NetworkException, org.opentrafficsim.base.parameters.ParameterException
- Specified by:
updateAll
in interfacePerceptionCategory<LaneBasedGTU,LanePerception>
- Throws:
GTUException
NetworkException
org.opentrafficsim.base.parameters.ParameterException
-
getLeaders
public PerceptionCollectable<HeadwayGTU,LaneBasedGTU> getLeaders()
Returns the leaders.- Specified by:
getLeaders
in interfaceLongitudinalControllerPerception
- Returns:
- leaders
-
-