Class AbstractLaneBasedMoveChecker

java.lang.Object
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedMoveChecker
All Implemented Interfaces:
Serializable, Remote, EventListener, org.djutils.event.EventListener
Direct Known Subclasses:
AccelerationChecker, CollisionDetector, MultiLaneBasedMoveChecker

public abstract class AbstractLaneBasedMoveChecker extends Object implements org.djutils.event.EventListener
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
See Also:
  • Constructor Details

    • AbstractLaneBasedMoveChecker

      public AbstractLaneBasedMoveChecker(Network network)
      Constructor.
      Parameters:
      network - Network; network
  • Method Details

    • notify

      public void notify(org.djutils.event.Event event) throws RemoteException
      Specified by:
      notify in interface org.djutils.event.EventListener
      Throws:
      RemoteException
    • checkMove

      public abstract void checkMove(LaneBasedGtu gtu) throws Exception
      Check the move of the given GTU.
      Parameters:
      gtu - LaneBasedGtu; GTU.
      Throws:
      Exception - thrown when something is not all right