Package org.opentrafficsim.road.gtu.lane
Class CollisionDetector
java.lang.Object
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
org.opentrafficsim.road.gtu.lane.CollisionDetector
- All Implemented Interfaces:
java.io.Serializable,java.util.EventListener,EventListenerInterface
public class CollisionDetector extends AbstractLaneBasedMoveChecker
Checks for collisions.
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 CollisionDetector(OTSNetwork network)Constructor. -
Method Summary
Modifier and Type Method Description voidcheckMove(LaneBasedGTU gtu)Check the move of the given GTU.
-
Constructor Details
-
CollisionDetector
Constructor.- Parameters:
network- OTSNetwork; network
-
-
Method Details
-
checkMove
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
-