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, org.opentrafficsim.base.geometry.OtsLocatable, HierarchicallyTyped<GtuType,Gtu>, Drawable, DynamicSpatialObject, SpatialObject
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 - String; id of the new GTU
      gtuType - GtuType; type of the new GTU
      simulator - OtsSimulatorInterface; simulator that controls the new GTU
      perceivableContext - 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