public class DirectBusStopPerception extends LaneBasedAbstractPerceptionCategory implements BusStopPerception
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.
| Modifier and Type | Field and Description |
|---|---|
protected static ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION| Constructor and Description |
|---|
DirectBusStopPerception(LanePerception perception) |
| Modifier and Type | Method and Description |
|---|---|
PerceptionCollectable<HeadwayBusStop,BusStop> |
computeBusStops()
Returns bus stops.
|
PerceptionCollectable<HeadwayBusStop,BusStop> |
getBusStops()
Returns the bus stops.
|
String |
toString() |
void |
updateAll() |
computeIfAbsent, computeIfAbsent, computeIfAbsentgetGtu, getObjectOrNull, getPerception, getTimestampprotected static final ParameterTypeLength LOOKAHEAD
public DirectBusStopPerception(LanePerception perception)
perception - LanePerception; perceptionpublic final PerceptionCollectable<HeadwayBusStop,BusStop> computeBusStops()
public final PerceptionCollectable<HeadwayBusStop,BusStop> getBusStops()
getBusStops in interface BusStopPerceptionpublic void updateAll()
throws GTUException,
NetworkException,
ParameterException
updateAll in interface PerceptionCategory<LaneBasedGTU,LanePerception>GTUExceptionNetworkExceptionParameterExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.