Package org.opentrafficsim.road.gtu.lane
Class AbstractLaneBasedMoveChecker
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
-
- All Implemented Interfaces:
java.io.Serializable,java.util.EventListener,EventListenerInterface
- Direct Known Subclasses:
AccelerationChecker,CollisionDetector,MultiLaneBasedMoveChecker
public abstract class AbstractLaneBasedMoveChecker extends java.lang.Object implements EventListenerInterface
Abstract class that listens to move events of GTUs so checks can be performed.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 AbstractLaneBasedMoveChecker(OTSNetwork network)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcheckMove(LaneBasedGTU gtu)Check the move of the given GTU.voidnotify(EventInterface event)
-
-
-
Constructor Detail
-
AbstractLaneBasedMoveChecker
public AbstractLaneBasedMoveChecker(OTSNetwork network)
Constructor.- Parameters:
network- OTSNetwork; network
-
-
Method Detail
-
notify
public void notify(EventInterface event) throws java.rmi.RemoteException
- Specified by:
notifyin interfaceEventListenerInterface- Throws:
java.rmi.RemoteException
-
checkMove
public abstract void checkMove(LaneBasedGTU gtu) throws java.lang.Exception
Check the move of the given GTU.- Parameters:
gtu- LaneBasedGTU; GTU.- Throws:
java.lang.Exception- thrown when something is not all right
-
-