public class SubjectiveCar extends AbstractGTU
ALIGN_COUNT, ALIGNED, operationalPlanlistenersDESTROY_EVENT, INIT_EVENT, MOVE_EVENTFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
SubjectiveCar(String id,
GTUType type,
DEVSSimulatorInterface.TimeDoubleUnit simulator,
DirectedPoint initialLocation,
OTSNetwork network) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
javax.media.j3d.Bounds |
getBounds() |
RelativePosition |
getCenter() |
ImmutableSet<RelativePosition> |
getContourPoints() |
RelativePosition |
getFront() |
Length |
getLength() |
DirectedPoint |
getLocation() |
Speed |
getMaximumSpeed() |
DirectedPoint |
getPosition() |
RelativePosition |
getRear() |
ImmutableMap<RelativePosition.TYPE,RelativePosition> |
getRelativePositions() |
Length |
getWidth() |
void |
setPosition(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, waitgetTacticalPlanner, getTacticalPlanneraddListener, addListener, addListener, addListener, removeListenerpublic SubjectiveCar(String id, GTUType type, DEVSSimulatorInterface.TimeDoubleUnit simulator, DirectedPoint initialLocation, OTSNetwork network) throws SimRuntimeException, GTUException, RemoteException, NamingException
id - car idtype - GTU typesimulator - simulatorinitialLocation - locationnetwork - the network in which the subjective car will be registeredGTUException - 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 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 DirectedPoint getPosition()
public final void setPosition(DirectedPoint position)
position - set positionpublic final DirectedPoint getLocation()
getLocation in interface LocatablegetLocation in class AbstractGTUpublic final ImmutableSet<RelativePosition> getContourPoints()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.