public class SubjectiveCar extends AbstractGTU
ALIGN_COUNT, ALIGNED, operationalPlanDESTROY_EVENT, INIT_EVENT, MOVE_EVENT| Constructor and Description |
|---|
SubjectiveCar(String id,
GTUType type,
OTSSimulatorInterface simulator,
nl.tudelft.simulation.language.d3.DirectedPoint initialLocation,
OTSRoadNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
javax.media.j3d.Bounds |
getBounds() |
RelativePosition |
getCenter() |
ImmutableSet<RelativePosition> |
getContourPoints() |
RelativePosition |
getFront() |
Length |
getLength() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getLocation() |
Speed |
getMaximumSpeed() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getPosition() |
RelativePosition |
getRear() |
ImmutableMap<RelativePosition.TYPE,RelativePosition> |
getRelativePositions() |
Length |
getWidth() |
void |
setPosition(nl.tudelft.simulation.language.d3.DirectedPoint position) |
String |
toString() |
addGtu, equals, getAcceleration, getAcceleration, getChildren, getErrorHandler, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getNextMoveEvent, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, getStrategicalPlanner, getStrategicalPlanner, hashCode, init, interruptMove, isDestroyed, move, removeGtu, setErrorHandler, 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, waitgetTacticalPlanner, getTacticalPlannerpublic SubjectiveCar(String id, GTUType type, OTSSimulatorInterface simulator, nl.tudelft.simulation.language.d3.DirectedPoint initialLocation, OTSRoadNetwork network) throws nl.tudelft.simulation.dsol.SimRuntimeException, GTUException, RemoteException, NamingException
id - String; car idtype - GTUType; GTU typesimulator - OTSSimulatorInterface; simulatorinitialLocation - DirectedPoint; locationnetwork - OTSRoadNetwork; the network in which the subjective car will be registeredGTUException - 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 Length getLength()
public final Length getWidth()
public final Speed getMaximumSpeed()
public final RelativePosition getFront()
public final RelativePosition getRear()
public final RelativePosition getCenter()
public final ImmutableMap<RelativePosition.TYPE,RelativePosition> getRelativePositions()
public final void destroy()
destroy in interface GTUdestroy in class 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 - DirectedPoint; set positionpublic final nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatablegetLocation in class AbstractGTUpublic final ImmutableSet<RelativePosition> getContourPoints()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.