Package org.opentrafficsim.core.gtu
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
-
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
ConstructorDescriptionTestGtu
(String id, GtuType gtuType, OtsSimulatorInterface simulator, 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, GtuType gtuType, OtsSimulatorInterface simulator, PerceivableContext perceivableContext) throws nl.tudelft.simulation.dsol.SimRuntimeException, GtuException - Parameters:
id
- String; id of the new GTUgtuType
- GtuType; type of the new GTUsimulator
- OtsSimulatorInterface; simulator that controls the new GTUperceivableContext
- 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 eventGtuException
- when something goes wrong during GTU instantiation
-