Class RTICar
java.lang.Object
org.djutils.event.EventProducer
org.opentrafficsim.core.gtu.AbstractGTU
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedGTU2
org.opentrafficsim.road.gtu.lane.AbstractLaneBasedIndividualGTU
org.opentrafficsim.road.gtu.lane.LaneBasedIndividualGTU
org.opentrafficsim.road.network.factory.rti.communication.RTICar
- All Implemented Interfaces:
Serializable,Locatable,EventProducerInterface,Identifiable,Drawable,GTU,LaneBasedGTU
public class RTICar extends LaneBasedIndividualGTU
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opentrafficsim.road.gtu.lane.LaneBasedIndividualGTU
LaneBasedIndividualGTU.LaneBasedIndividualCarBuilder -
Field Summary
Fields inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedGTU2
CACHED_POSITION, CACHING, eventMargin, initialLocationThresholdDifference, NON_CACHED_POSITIONFields inherited from class org.opentrafficsim.core.gtu.AbstractGTU
ALIGN_COUNT, ALIGNED, operationalPlanFields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITIONFields inherited from interface org.opentrafficsim.core.gtu.GTU
DESTROY_EVENT, INIT_EVENT, MOVE_EVENTFields inherited from interface org.opentrafficsim.road.gtu.lane.LaneBasedGTU
LANE_CHANGE_EVENT, LANE_ENTER_EVENT, LANE_EXIT_EVENT, LANEBASED_DESTROY_EVENT, LANEBASED_INIT_EVENT, LANEBASED_MOVE_EVENT, LINK_ENTER_EVENT, LINK_EXIT_EVENT -
Constructor Summary
Constructors Constructor Description RTICar(String valueOf, GTUType carType, Length carLength, Length width, Speed maxSpeed, OTSSimulatorInterface simulator, OTSRoadNetwork network) -
Method Summary
Modifier and Type Method Description DirectedPointgetLocation()Methods inherited from class org.opentrafficsim.road.gtu.lane.LaneBasedIndividualGTU
getCenter, getContourPoints, getFront, getRear, getRelativePositions, toStringMethods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedIndividualGTU
getLength, getMaximumSpeed, getWidth, laneChangeAllowed, setNoLaneChangeDistanceMethods inherited from class org.opentrafficsim.road.gtu.lane.AbstractLaneBasedGTU2
addTrigger, changeLaneInstantaneously, destroy, enterCrossSection, finalizeLaneChange, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBounds, getCarFollowingAcceleration, getDesiredSpeed, getDirection, getLateralPosition, getNetwork, getReferencePosition, getStrategicalPlanner, getStrategicalPlanner, getTurnIndicatorStatus, getTurnIndicatorStatus, getVehicleModel, init, initLaneChange, isInstantaneousLaneChange, leaveCrossSection, move, position, position, positions, positions, reinit, scheduleEnterEvent, scheduleLeaveEvent, scheduleTriggers, setFinalizeLaneChangeEvent, setInstantaneousLaneChange, setParent, setTurnIndicatorStatus, setVehicleModelMethods inherited from class org.opentrafficsim.core.gtu.AbstractGTU
addGtu, equals, getAcceleration, getAcceleration, getChildren, getErrorHandler, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getNextMoveEvent, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSourceId, getSpeed, getSpeed, hashCode, init, interruptMove, isDestroyed, removeGtu, setErrorHandler, setMaximumAcceleration, setMaximumDeceleration, setParametersMethods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djutils.event.EventProducerInterface
addListener, addListener, addListener, addListener, getEventTypesWithListeners, getSourceId, hasListeners, numberOfListeners, removeListenerMethods inherited from interface org.opentrafficsim.core.gtu.GTU
addGtu, getAcceleration, getAcceleration, getChildren, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, isDestroyed, removeGtu, setErrorHandler, setParametersMethods inherited from interface org.opentrafficsim.road.gtu.lane.LaneBasedGTU
getProjectedLength, getTacticalPlanner, getTacticalPlanner, isBrakingLightsOn, isBrakingLightsOn
-
Constructor Details
-
RTICar
public RTICar(String valueOf, GTUType carType, Length carLength, Length width, Speed maxSpeed, OTSSimulatorInterface simulator, OTSRoadNetwork network) throws NamingException, GTUException, OperationalPlanException- Parameters:
valueOf- String; car idcarType- GTUType; GTU typecarLength- Length; car lengthwidth- Length; car widthmaxSpeed- Speed; maximum speed of the carsimulator- OTSSimulatorInterface; the simulatornetwork- OTSRoadNetwork; the network on which the car will be registered- Throws:
GTUException- on GTU inconsistencyNamingException- when animation cannot be registeredOperationalPlanException- when plan retrieval fails
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceLaneBasedGTU- Specified by:
getLocationin interfaceLocatable- Overrides:
getLocationin classAbstractGTU
-