Class GtuTest.TestGtu

java.lang.Object
org.djutils.event.LocalEventProducer
org.opentrafficsim.core.gtu.Gtu
org.opentrafficsim.core.gtu.GtuTest.TestGtu
All Implemented Interfaces:
Serializable, Remote, nl.tudelft.simulation.dsol.animation.Locatable, org.djutils.base.Identifiable, org.djutils.event.EventProducer, DynamicSpatialObject, OtsLocatable, SpatialObject, HierarchicallyTyped<GtuType,Gtu>
Enclosing class:
GtuTest

class GtuTest.TestGtu extends Gtu
  • Constructor Details

    • TestGtu

      TestGtu(String id, GtuType gtuType, OtsSimulatorInterface simulator, PerceivableContext perceivableContext) throws nl.tudelft.simulation.dsol.SimRuntimeException, GtuException
      Parameters:
      id - id of the new GTU
      gtuType - type of the new GTU
      simulator - simulator that controls the new GTU
      perceivableContext - the perceivable context of the new GTU
      Throws:
      nl.tudelft.simulation.dsol.SimRuntimeException - when something goes wrong in the scheduling of the first move event
      GtuException - when something goes wrong during GTU instantiation