Package org.opentrafficsim.road.gtu.lane
Class MultiLaneBasedMoveChecker
java.lang.Object
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
org.opentrafficsim.road.gtu.lane.MultiLaneBasedMoveChecker
- All Implemented Interfaces:
Serializable
,Remote
,EventListener
,org.djutils.event.EventListener
Checker that invokes multiple checkers.
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
ConstructorDescriptionMultiLaneBasedMoveChecker
(Network network) Constructor.MultiLaneBasedMoveChecker
(Network network, AbstractLaneBasedMoveChecker... checkers) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) final void
addChecker
(AbstractLaneBasedMoveChecker checker) Add checker.void
checkMove
(LaneBasedGtu gtu) Check the move of the given GTU.Methods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
notify
-
Constructor Details
-
MultiLaneBasedMoveChecker
Constructor.- Parameters:
network
- Network; network
-
MultiLaneBasedMoveChecker
Constructor.- Parameters:
network
- Network; networkcheckers
- AbstractLaneBasedMoveChecker...; checkers
-
-
Method Details
-
addChecker
Add checker.- Parameters:
checker
- AbstractLaneBasedMoveChecker; checker to add
-
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
-