public class AccPerception 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_DECELERATION
DELAY, RANGE
Constructor and Description |
---|
AccPerception(LanePerception perception)
Constructor using default sensors with zero delay.
|
AccPerception(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, computeIfAbsent
getGtu, getObjectOrNull, getPerception, getTimestamp
public AccPerception(LanePerception perception)
perception
- LanePerception; perceptionpublic AccPerception(LanePerception perception, HeadwayGtuType sensors)
perception
- LanePerception; perceptionsensors
- HeadwayGtuType; headway GTU type that defines the onboard sensor informationpublic void updateAll() throws GTUException, NetworkException, ParameterException
updateAll
in interface PerceptionCategory<LaneBasedGTU,LanePerception>
GTUException
NetworkException
ParameterException
public PerceptionCollectable<HeadwayGTU,LaneBasedGTU> getLeaders()
getLeaders
in interface LongitudinalControllerPerception
Copyright © 2014–2019 Delft University of Technology. All rights reserved.