public class SubjectiveCar
extends org.opentrafficsim.core.gtu.AbstractGTU
ALIGN_COUNT, ALIGNED, operationalPlan| Constructor and Description |
|---|
SubjectiveCar(String id,
org.opentrafficsim.core.gtu.GTUType type,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
nl.tudelft.simulation.language.d3.DirectedPoint initialLocation,
org.opentrafficsim.core.network.OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
javax.media.j3d.Bounds |
getBounds() |
org.opentrafficsim.core.gtu.RelativePosition |
getCenter() |
nl.tudelft.simulation.immutablecollections.ImmutableSet<org.opentrafficsim.core.gtu.RelativePosition> |
getContourPoints() |
org.opentrafficsim.core.gtu.RelativePosition |
getFront() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumSpeed() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getPosition() |
org.opentrafficsim.core.gtu.RelativePosition |
getRear() |
nl.tudelft.simulation.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.RelativePosition.TYPE,org.opentrafficsim.core.gtu.RelativePosition> |
getRelativePositions() |
org.djunits.value.vdouble.scalar.Length |
getWidth() |
void |
setPosition(nl.tudelft.simulation.language.d3.DirectedPoint position) |
String |
toString() |
addGtu, equals, getAcceleration, getAcceleration, getBaseColor, getChildren, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, getStrategicalPlanner, getStrategicalPlanner, hashCode, init, interruptMove, isDestroyed, move, removeGtu, setMaximumAcceleration, setMaximumDeceleration, setParameters, setParentaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic SubjectiveCar(String id, org.opentrafficsim.core.gtu.GTUType type, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, nl.tudelft.simulation.language.d3.DirectedPoint initialLocation, org.opentrafficsim.core.network.OTSNetwork network) throws nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.GTUException, RemoteException, NamingException
id - car idtype - GTU typesimulator - simulatorinitialLocation - locationnetwork - the network in which the subjective car will be registeredorg.opentrafficsim.core.gtu.GTUException - when GTU cannot be initializednl.tudelft.simulation.dsol.SimRuntimeException - when operational plan execution or perception execution cannot be scheduledNamingException - when animation cannot be registeredRemoteException - when animation context or simulator cannot be reachedpublic final org.djunits.value.vdouble.scalar.Length getLength()
public final org.djunits.value.vdouble.scalar.Length getWidth()
public final org.djunits.value.vdouble.scalar.Speed getMaximumSpeed()
public final org.opentrafficsim.core.gtu.RelativePosition getFront()
public final org.opentrafficsim.core.gtu.RelativePosition getRear()
public final org.opentrafficsim.core.gtu.RelativePosition getCenter()
public final nl.tudelft.simulation.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.RelativePosition.TYPE,org.opentrafficsim.core.gtu.RelativePosition> getRelativePositions()
public final void destroy()
destroy in interface org.opentrafficsim.core.gtu.GTUdestroy in class org.opentrafficsim.core.gtu.AbstractGTUpublic final javax.media.j3d.Bounds getBounds()
public final nl.tudelft.simulation.language.d3.DirectedPoint getPosition()
public final void setPosition(nl.tudelft.simulation.language.d3.DirectedPoint position)
position - set positionpublic final nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatablegetLocation in class org.opentrafficsim.core.gtu.AbstractGTUpublic final nl.tudelft.simulation.immutablecollections.ImmutableSet<org.opentrafficsim.core.gtu.RelativePosition> getContourPoints()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.