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<org.opentrafficsim.core.gtu.GtuType,org.opentrafficsim.core.gtu.Gtu>, org.opentrafficsim.core.animation.Drawable, org.opentrafficsim.core.DynamicSpatialObject, org.opentrafficsim.core.SpatialObject
Enclosing class:
GtuTest

class GtuTest.TestGtu extends org.opentrafficsim.core.gtu.Gtu
  • Field Summary

    Fields inherited from class org.opentrafficsim.core.gtu.Gtu

    ALIGN_COUNT, ALIGNED, DESTROY_EVENT, MOVE_EVENT

    Fields inherited from interface org.djutils.event.EventProducer

    FIRST_POSITION, LAST_POSITION
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestGtu(String id, org.opentrafficsim.core.gtu.GtuType gtuType, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, org.opentrafficsim.core.perception.PerceivableContext perceivableContext)
     
  • Method Summary

    Methods inherited from class org.opentrafficsim.core.gtu.Gtu

    addGtu, destroy, equals, getAcceleration, getAcceleration, getBounds, getCenter, getChildren, getContourPoints, getErrorHandler, getFront, getId, getLength, getLocation, getMaximumAcceleration, getMaximumDeceleration, getMaximumSpeed, getNextMoveEvent, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getRear, getReference, getRelativePositions, getShape, getShape, getSimulator, getSpeed, getSpeed, getStrategicalPlanner, getStrategicalPlanner, getTacticalPlanner, getTacticalPlanner, getTag, getType, getWidth, hashCode, init, interruptMove, isDestroyed, move, removeGtu, setErrorHandler, setMaximumAcceleration, setMaximumDeceleration, setOperationalPlan, setParameters, setParent, setTag

    Methods inherited from class org.djutils.event.LocalEventProducer

    addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opentrafficsim.core.DynamicSpatialObject

    transformShape

    Methods inherited from interface org.opentrafficsim.base.HierarchicallyTyped

    isOfType

    Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable

    getDirZ, getZ
  • Constructor Details

    • TestGtu

      TestGtu(String id, org.opentrafficsim.core.gtu.GtuType gtuType, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, org.opentrafficsim.core.perception.PerceivableContext perceivableContext) throws nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.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
      org.opentrafficsim.core.gtu.GtuException - when something goes wrong during GTU instantiation