Package org.opentrafficsim.road.gtu.lane
Class AbstractLaneBasedMoveChecker
java.lang.Object
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
- All Implemented Interfaces:
EventListener,EventListener
- Direct Known Subclasses:
AccelerationChecker,CollisionDetector,MultiLaneBasedMoveChecker
Abstract class that listens to move events of GTUs so checks can be performed.
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcheckMove(LaneBasedGtu gtu) Check the move of the given GTU.void
-
Constructor Details
-
AbstractLaneBasedMoveChecker
Constructor.- Parameters:
network- network
-
-
Method Details
-
notify
- Specified by:
notifyin interfaceEventListener
-
checkMove
Check the move of the given GTU.- Parameters:
gtu- GTU.- Throws:
Exception- thrown when something is not all right
-