public class DirectBusStopPerception extends LaneBasedAbstractPerceptionCategory implements BusStopPerception
Copyright (c) 2013-2018 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 org.opentrafficsim.base.parameters.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.
|
org.opentrafficsim.base.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 org.opentrafficsim.base.parameters.ParameterTypeLength LOOKAHEAD
public DirectBusStopPerception(LanePerception perception)
perception - perceptionpublic final void updateBusStops()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException
updateBusStops in interface BusStopPerceptionorg.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.base.parameters.ParameterException - if lane structure cannot be made due to missing parameterpublic final PerceptionCollectable<HeadwayBusStop,BusStop> getBusStops()
getBusStops in interface BusStopPerceptionpublic final org.opentrafficsim.base.TimeStampedObject<PerceptionCollectable<HeadwayBusStop,BusStop>> getTimeStampedBusStops()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.