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-2022 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 org.opentrafficsim.base.parameters.ParameterTypeLength
LOOKAHEAD
Look 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.String
toString()
void
updateAll()
-
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
-
-
-
-
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:
getBusStops
in interfaceBusStopPerception
- Returns:
- bus stops
-
updateAll
public void updateAll() throws GTUException, NetworkException, org.opentrafficsim.base.parameters.ParameterException
- Specified by:
updateAll
in interfacePerceptionCategory<LaneBasedGTU,LanePerception>
- Throws:
GTUException
NetworkException
org.opentrafficsim.base.parameters.ParameterException
-
-