Class AbstractGTU

java.lang.Object
org.djutils.event.EventProducer
org.opentrafficsim.core.gtu.AbstractGTU
All Implemented Interfaces:
java.io.Serializable, Locatable, EventProducerInterface, Identifiable, Drawable, GTU
Direct Known Subclasses:
AbstractLinkBasedGTU

public abstract class AbstractGTU
extends EventProducer
implements GTU
Implements the basic functionalities of any GTU: the ability to move on 3D-space according to a plan.

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: 6119 $, $LastChangedDate: 2020-01-24 02:44:57 +0100 (Fri, 24 Jan 2020) $, by $Author: averbraeck $, initial version Oct 22, 2014
Author:
Alexander Verbraeck, Peter Knoppers
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • AbstractGTU

      public AbstractGTU​(java.lang.String id, GTUType gtuType, OTSSimulatorInterface simulator, PerceivableContext perceivableContext) throws GTUException
      Parameters:
      id - String; the id of the GTU
      gtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusType
      simulator - OTSSimulatorInterface; the simulator to schedule plan changes on
      perceivableContext - PerceivableContext; the perceivable context in which this GTU will be registered
      Throws:
      GTUException - when the preconditions of the constructor are not met
    • AbstractGTU

      public AbstractGTU​(IdGenerator idGenerator, GTUType gtuType, OTSSimulatorInterface simulator, PerceivableContext perceivableContext) throws GTUException
      Parameters:
      idGenerator - IdGenerator; the generator that will produce a unique id of the GTU
      gtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusType
      simulator - OTSSimulatorInterface; the simulator to schedule plan changes on
      perceivableContext - PerceivableContext; the perceivable context in which this GTU will be registered
      Throws:
      GTUException - when the preconditions of the constructor are not met
  • Method Details