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) |
SubjectiveCar(String id,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.gtu.plan.strategical.StrategicalPlanner strategicalPlanner,
org.opentrafficsim.core.gtu.perception.Perception perception,
DirectedPoint initialLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Bounds |
getBounds() |
org.opentrafficsim.core.gtu.DrivingCharacteristics |
getDrivingCharacteristics() |
org.opentrafficsim.core.gtu.RelativePosition |
getFront() |
org.djunits.value.vdouble.scalar.Length.Rel |
getLength() |
DirectedPoint |
getLocation() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumVelocity() |
DirectedPoint |
getPosition() |
org.opentrafficsim.core.gtu.RelativePosition |
getRear() |
Map<org.opentrafficsim.core.gtu.RelativePosition.TYPE,org.opentrafficsim.core.gtu.RelativePosition> |
getRelativePositions() |
org.djunits.value.vdouble.scalar.Length.Rel |
getWidth() |
void |
setPosition(DirectedPoint position) |
getAcceleration, getAcceleration, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerception, getReference, getSimulator, getStrategicalPlanner, getTacticalPlanner, getVelocity, getVelocity, interruptMove, move, setMaximumAcceleration, setMaximumDecelerationpublic SubjectiveCar(String id, org.opentrafficsim.core.gtu.GTUType type, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, DirectedPoint initialLocation) throws SimRuntimeException, org.opentrafficsim.core.gtu.GTUException, RemoteException, NamingException
id - car idtype - GTU typesimulator - simulatorinitialLocation - locationorg.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 SubjectiveCar(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.gtu.plan.strategical.StrategicalPlanner strategicalPlanner, org.opentrafficsim.core.gtu.perception.Perception perception, DirectedPoint initialLocation) throws SimRuntimeException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.core.gtu.GTUException
id - car idgtuType - GTU typestrategicalPlanner - the strategical planner of the GTUperception - the perception unit of the GTUsimulator - simulatorinitialLocation - locationorg.opentrafficsim.core.gtu.GTUException - when GTU cannot be initializedSimRuntimeException - when operational plan execution or perception execution cannot be scheduledorg.opentrafficsim.core.network.NetworkException - on inconsistency of the networkpublic org.djunits.value.vdouble.scalar.Length.Rel getLength()
public org.djunits.value.vdouble.scalar.Length.Rel getWidth()
public org.djunits.value.vdouble.scalar.Speed getMaximumVelocity()
public org.opentrafficsim.core.gtu.RelativePosition getFront()
public org.opentrafficsim.core.gtu.RelativePosition getRear()
public Map<org.opentrafficsim.core.gtu.RelativePosition.TYPE,org.opentrafficsim.core.gtu.RelativePosition> getRelativePositions()
public void destroy()
destroy in interface org.opentrafficsim.core.gtu.GTUdestroy in class org.opentrafficsim.core.gtu.AbstractGTUpublic org.opentrafficsim.core.gtu.DrivingCharacteristics getDrivingCharacteristics()
public Bounds getBounds()
public DirectedPoint getPosition()
public void setPosition(DirectedPoint position)
position - set positionpublic DirectedPoint getLocation()
getLocation in interface LocatableInterfacegetLocation in interface org.opentrafficsim.core.gtu.GTUgetLocation in class org.opentrafficsim.core.gtu.AbstractGTUCopyright © 2014–2016 Delft University of Technology. All rights reserved.