Class DirectBusStopPerception
java.lang.Object
org.opentrafficsim.base.Type<AbstractPerceptionCategory<G,P>>
org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory<LaneBasedGTU,LanePerception>
org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
org.opentrafficsim.road.gtu.lane.perception.categories.DirectBusStopPerception
- All Implemented Interfaces:
Serializable,PerceptionCategory<LaneBasedGTU,LanePerception>,BusStopPerception,LaneBasedPerceptionCategory
public class DirectBusStopPerception extends LaneBasedAbstractPerceptionCategory implements BusStopPerception
Bus stop perception.
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.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 27 jan. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected static ParameterTypeLengthLOOKAHEADLook ahead parameter type.Fields inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION -
Constructor Summary
Constructors Constructor Description DirectBusStopPerception(LanePerception perception) -
Method Summary
Modifier and Type Method Description PerceptionCollectable<HeadwayBusStop,BusStop>computeBusStops()Returns bus stops.PerceptionCollectable<HeadwayBusStop,BusStop>getBusStops()Returns the bus stops.StringtoString()voidupdateAll()Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsentMethods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestamp
-
Field Details
-
LOOKAHEAD
Look ahead parameter type.
-
-
Constructor Details
-
DirectBusStopPerception
- Parameters:
perception- LanePerception; perception
-
-
Method Details
-
computeBusStops
Returns bus stops.- Returns:
- PerceptionCollectable<HeadwayBusStop, BusStop>; bus stops
-
getBusStops
Returns the bus stops.- Specified by:
getBusStopsin interfaceBusStopPerception- Returns:
- bus stops
-
updateAll
- Specified by:
updateAllin interfacePerceptionCategory<LaneBasedGTU,LanePerception>- Throws:
GTUExceptionNetworkExceptionParameterException
-
toString
-