Class CaccPerception
- java.lang.Object
-
- org.opentrafficsim.base.Type<AbstractPerceptionCategory<G,P>>
-
- org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory<InternalLaneBasedGtu,LanePerception>
-
- org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
-
- org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.CaccPerception
-
- All Implemented Interfaces:
Serializable,PerceptionCategory<InternalLaneBasedGtu,LanePerception>,LongitudinalControllerPerception
public class CaccPerception extends LaneBasedAbstractPerceptionCategory implements LongitudinalControllerPerception
CACC perception.Copyright (c) 2013-2020 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, GtuHeadwayType sensors)Constructor using specified sensors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerceptionCollectable<GtuHeadway,LaneBasedGtu>getLeaders()Returns the leaders.voidupdateAll()-
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
getCurrentTime, getGtu, getObjectOrNull, getPerception
-
-
-
-
Constructor Detail
-
CaccPerception
public CaccPerception(LanePerception perception)
Constructor using default sensors with zero delay.- Parameters:
perception- LanePerception; perception
-
CaccPerception
public CaccPerception(LanePerception perception, GtuHeadwayType sensors)
Constructor using specified sensors.- Parameters:
perception- LanePerception; perceptionsensors- GtuHeadwayType; onboard sensor information
-
-
Method Detail
-
updateAll
public void updateAll() throws GtuException, NetworkException, ParameterException- Specified by:
updateAllin interfacePerceptionCategory<InternalLaneBasedGtu,LanePerception>- Throws:
GtuExceptionNetworkExceptionParameterException
-
getLeaders
public PerceptionCollectable<GtuHeadway,LaneBasedGtu> getLeaders()
Returns the leaders.- Specified by:
getLeadersin interfaceLongitudinalControllerPerception- Returns:
- leaders
-
-