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> |
getBusStops()
Returns the bus stops.
|
TimeStampedObject<PerceptionCollectable<HeadwayBusStop,BusStop>> |
getTimeStampedBusStops()
Returns the time stamped bus stops.
|
String |
toString() |
void |
updateBusStops()
Updates the bus stops.
|
getGtu, getObjectOrNull, getPerception, getTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdateAllprotected static final ParameterTypeLength LOOKAHEAD
public DirectBusStopPerception(LanePerception perception)
perception - LanePerception; perceptionpublic final void updateBusStops()
throws GTUException,
ParameterException
updateBusStops in interface BusStopPerceptionGTUException - if the GTU has not been initializedParameterException - if lane structure cannot be made due to missing parameterpublic final PerceptionCollectable<HeadwayBusStop,BusStop> getBusStops()
getBusStops in interface BusStopPerceptionpublic final TimeStampedObject<PerceptionCollectable<HeadwayBusStop,BusStop>> getTimeStampedBusStops()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.