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:
java.io.Serializable,PerceptionCategory<LaneBasedGTU,LanePerception>,BusStopPerception,LaneBasedPerceptionCategory
public class DirectBusStopPerception extends LaneBasedAbstractPerceptionCategory implements BusStopPerception
Bus stop perception.Copyright (c) 2013-2020 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerceptionCollectable<HeadwayBusStop,BusStop>computeBusStops()Returns bus stops.PerceptionCollectable<HeadwayBusStop,BusStop>getBusStops()Returns the bus stops.java.lang.StringtoString()voidupdateAll()-
Methods inherited from class org.opentrafficsim.road.gtu.lane.perception.categories.LaneBasedAbstractPerceptionCategory
computeIfAbsent, computeIfAbsent, computeIfAbsent
-
Methods inherited from class org.opentrafficsim.core.gtu.perception.AbstractPerceptionCategory
getGtu, getObjectOrNull, getPerception, getTimestamp
-
-
-
-
Field Detail
-
LOOKAHEAD
protected static final ParameterTypeLength LOOKAHEAD
Look ahead parameter type.
-
-
Constructor Detail
-
DirectBusStopPerception
public DirectBusStopPerception(LanePerception perception)
- Parameters:
perception- LanePerception; perception
-
-
Method Detail
-
computeBusStops
public final PerceptionCollectable<HeadwayBusStop,BusStop> computeBusStops()
Returns bus stops.- Returns:
- PerceptionCollectable<HeadwayBusStop, BusStop>; bus stops
-
getBusStops
public final PerceptionCollectable<HeadwayBusStop,BusStop> getBusStops()
Returns the bus stops.- Specified by:
getBusStopsin interfaceBusStopPerception- Returns:
- bus stops
-
updateAll
public void updateAll() throws GTUException, NetworkException, ParameterException- Specified by:
updateAllin interfacePerceptionCategory<LaneBasedGTU,LanePerception>- Throws:
GTUExceptionNetworkExceptionParameterException
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-