public class SubjectiveCar
extends org.opentrafficsim.core.gtu.AbstractGTU
| Constructor and Description |
|---|
SubjectiveCar(String id,
org.opentrafficsim.core.gtu.GTUType type,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
DirectedPoint initialLocation,
org.opentrafficsim.core.network.OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics |
getBehavioralCharacteristics() |
Bounds |
getBounds() |
org.opentrafficsim.core.gtu.RelativePosition |
getCenter() |
org.opentrafficsim.base.immutablecollections.ImmutableSet<org.opentrafficsim.core.gtu.RelativePosition> |
getContourPoints() |
org.opentrafficsim.core.gtu.RelativePosition |
getFront() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
DirectedPoint |
getLocation() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumSpeed() |
DirectedPoint |
getPosition() |
org.opentrafficsim.core.gtu.RelativePosition |
getRear() |
org.opentrafficsim.base.immutablecollections.ImmutableMap<org.opentrafficsim.core.gtu.RelativePosition.TYPE,org.opentrafficsim.core.gtu.RelativePosition> |
getRelativePositions() |
org.djunits.value.vdouble.scalar.Length |
getWidth() |
void |
setPosition(DirectedPoint position) |
String |
toString() |
getAcceleration, getBaseColor, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getSpeed, getStrategicalPlanner, getTacticalPlanner, getTurnIndicatorStatus, init, interruptMove, isDestroyed, move, setMaximumAcceleration, setMaximumDeceleration, setTurnIndicatorStatusaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerpublic SubjectiveCar(String id, org.opentrafficsim.core.gtu.GTUType type, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, DirectedPoint initialLocation, org.opentrafficsim.core.network.OTSNetwork network) throws 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 initializedSimRuntimeException - 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 org.opentrafficsim.base.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 Bounds getBounds()
public final DirectedPoint getPosition()
public final void setPosition(DirectedPoint position)
position - set positionpublic final DirectedPoint getLocation()
getLocation in interface LocatablegetLocation in class org.opentrafficsim.core.gtu.AbstractGTUpublic final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getBehavioralCharacteristics()
public final org.opentrafficsim.base.immutablecollections.ImmutableSet<org.opentrafficsim.core.gtu.RelativePosition> getContourPoints()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.