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:
Serializable
,Remote
,EventListener
,org.djutils.event.EventListener
Checks acceleration bounds.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
- See Also:
-
Constructor Summary
ConstructorDescriptionAccelerationChecker
(Network network) Constructor.AccelerationChecker
(Network network, org.djunits.value.vdouble.scalar.Acceleration min, org.djunits.value.vdouble.scalar.Acceleration max, org.djunits.value.vdouble.scalar.Speed minSpeed) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkMove
(LaneBasedGtu gtu) Check the move of the given GTU.Methods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
notify
-
Constructor Details
-
AccelerationChecker
Constructor.- Parameters:
network
- Network; network
-
AccelerationChecker
public AccelerationChecker(Network network, org.djunits.value.vdouble.scalar.Acceleration min, org.djunits.value.vdouble.scalar.Acceleration max, org.djunits.value.vdouble.scalar.Speed minSpeed) Constructor.- Parameters:
network
- Network; networkmin
- Acceleration; minimum allowable accelerationmax
- Acceleration; maximum allowable accelerationminSpeed
- Speed; speed above which acceleration should be checked
-
-
Method Details
-
checkMove
Check the move of the given GTU.- Specified by:
checkMove
in classAbstractLaneBasedMoveChecker
- Parameters:
gtu
- LaneBasedGtu; GTU.- Throws:
Exception
- thrown when something is not all right
-