Package org.opentrafficsim.road.gtu.lane
Class AccelerationChecker
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
-
- org.opentrafficsim.road.gtu.lane.AccelerationChecker
-
- All Implemented Interfaces:
java.io.Serializable,java.util.EventListener,EventListenerInterface
public class AccelerationChecker extends AbstractLaneBasedMoveChecker
Checks acceleration bounds.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 Aug 6, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccelerationChecker(OTSNetwork network)Constructor.AccelerationChecker(OTSNetwork network, Acceleration min, Acceleration max, Speed minSpeed)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckMove(LaneBasedGTU gtu)Check the move of the given GTU.-
Methods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
notify
-
-
-
-
Constructor Detail
-
AccelerationChecker
public AccelerationChecker(OTSNetwork network)
Constructor.- Parameters:
network- OTSNetwork; network
-
AccelerationChecker
public AccelerationChecker(OTSNetwork network, Acceleration min, Acceleration max, Speed minSpeed)
Constructor.- Parameters:
network- OTSNetwork; networkmin- Acceleration; minimum allowable accelerationmax- Acceleration; maximum allowable accelerationminSpeed- Speed; speed above which acceleration should be checked
-
-
Method Detail
-
checkMove
public void checkMove(LaneBasedGTU gtu) throws java.lang.Exception
Check the move of the given GTU.- Specified by:
checkMovein classAbstractLaneBasedMoveChecker- Parameters:
gtu- LaneBasedGTU; GTU.- Throws:
java.lang.Exception- thrown when something is not all right
-
-