public class DirectBusStopPerception extends LaneBasedAbstractPerceptionCategory implements BusStopPerception
Copyright (c) 2013-2017 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| Constructor and Description |
|---|
DirectBusStopPerception(LanePerception perception) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<HeadwayBusStop> |
getBusStops()
Returns the bus stops.
|
org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayBusStop>> |
getTimeStampedBusStops()
Returns the time stamped bus stops.
|
String |
toString() |
void |
updateBusStops()
Updates the bus stops.
|
getGtu, getPerceptiongetObjectOrNull, getTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitupdateAllpublic DirectBusStopPerception(LanePerception perception)
perception - perceptionpublic final void updateBusStops()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
updateBusStops in interface BusStopPerceptionorg.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException - if lane structure cannot be made due to missing parameterpublic final SortedSet<HeadwayBusStop> getBusStops()
getBusStops in interface BusStopPerceptionpublic final org.opentrafficsim.base.TimeStampedObject<SortedSet<HeadwayBusStop>> getTimeStampedBusStops()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.