Class AccPerception
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.AccPerception
- All Implemented Interfaces:
Serializable,PerceptionCategory<LaneBasedGTU,LanePerception>,LongitudinalControllerPerception
public class AccPerception extends LaneBasedAbstractPerceptionCategory implements LongitudinalControllerPerception
ACC 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_DECELERATIONFields inherited from interface org.opentrafficsim.road.gtu.lane.perception.categories.neighbors.LongitudinalControllerPerception
DELAY, RANGE -
Constructor Summary
Constructors Constructor Description AccPerception(LanePerception perception)Constructor using default sensors with zero delay.AccPerception(LanePerception perception, HeadwayGtuType sensors)Constructor using specified sensors. -
Method Summary
Modifier and Type Method Description PerceptionCollectable<HeadwayGTU,LaneBasedGTU>getLeaders()Returns the leaders.voidupdateAll()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsentMethods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestamp
-
Constructor Details
-
AccPerception
Constructor using default sensors with zero delay.- Parameters:
perception- LanePerception; perception
-
AccPerception
Constructor using specified sensors.- Parameters:
perception- LanePerception; perceptionsensors- HeadwayGtuType; headway GTU type that defines the onboard sensor information
-
-
Method Details
-
updateAll
- Specified by:
updateAllin interfacePerceptionCategory<LaneBasedGTU,LanePerception>- Throws:
GTUExceptionNetworkExceptionParameterException
-
getLeaders
Returns the leaders.- Specified by:
getLeadersin interfaceLongitudinalControllerPerception- Returns:
- leaders
-