public class CaccPerception extends LaneBasedAbstractPerceptionCategory implements LongitudinalControllerPerception
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATIONDELAY, RANGE| Constructor and Description |
|---|
CaccPerception(LanePerception perception)
Constructor using default sensors with zero delay.
|
CaccPerception(LanePerception perception,
HeadwayGtuType sensors)
Constructor using specified sensors.
|
| Modifier and Type | Method and Description |
|---|---|
PerceptionCollectable<HeadwayGTU,LaneBasedGTU> |
getLeaders()
Returns the leaders.
|
void |
updateAll() |
computeIfAbsent, computeIfAbsent, computeIfAbsentgetGtu, getObjectOrNull, getPerception, getTimestamppublic CaccPerception(LanePerception perception)
perception - LanePerception; perceptionpublic CaccPerception(LanePerception perception, HeadwayGtuType sensors)
perception - LanePerception; perceptionsensors - HeadwayGtuType; onboard sensor informationpublic void updateAll()
throws GTUException,
NetworkException,
ParameterException
updateAll in interface PerceptionCategory<LaneBasedGTU,LanePerception>GTUExceptionNetworkExceptionParameterExceptionpublic PerceptionCollectable<HeadwayGTU,LaneBasedGTU> getLeaders()
getLeaders in interface LongitudinalControllerPerceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.