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
,EventListener
,EventListenerInterface
public class MultiLaneBasedMoveChecker extends AbstractLaneBasedMoveChecker
Checker that invokes multiple checkers.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 MultiLaneBasedMoveChecker(OTSNetwork network)
Constructor.MultiLaneBasedMoveChecker(OTSNetwork network, AbstractLaneBasedMoveChecker... checkers)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkMove(LaneBasedGTU gtu)
Check the move of the given GTU.-
Methods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
notify
-
-
-
-
Constructor Detail
-
MultiLaneBasedMoveChecker
public MultiLaneBasedMoveChecker(OTSNetwork network)
Constructor.- Parameters:
network
- OTSNetwork; network
-
MultiLaneBasedMoveChecker
public MultiLaneBasedMoveChecker(OTSNetwork network, AbstractLaneBasedMoveChecker... checkers)
Constructor.- Parameters:
network
- OTSNetwork; networkcheckers
- AbstractLaneBasedMoveChecker...; checkers
-
-
Method Detail
-
checkMove
public void checkMove(LaneBasedGTU gtu) throws Exception
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
-
-