public class LaneBasedIndividualGTU extends AbstractLaneBasedIndividualGTU
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
LaneBasedIndividualGTU.LaneBasedIndividualCarBuilder
Build an individual car and use easy setter methods to instantiate the car.
|
CACHED_POSITION, CACHING, initialLocationThresholdDifference, NON_CACHED_POSITIONALIGN_COUNT, ALIGNED, operationalPlanlistenersLANE_CHANGE_EVENT, LANE_ENTER_EVENT, LANE_EXIT_EVENT, LANEBASED_DESTROY_EVENT, LANEBASED_INIT_EVENT, LANEBASED_MOVE_EVENT, LINK_ENTER_EVENT, LINK_EXIT_EVENTDESTROY_EVENT, INIT_EVENT, MOVE_EVENTFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
LaneBasedIndividualGTU(String id,
GTUType gtuType,
Length length,
Length width,
Speed maximumSpeed,
Length front,
Length centerOfGravity,
OTSSimulatorInterface simulator,
OTSRoadNetwork network)
Construct a new LaneBasedIndividualGTU.
|
LaneBasedIndividualGTU(String id,
GTUType gtuType,
Length length,
Length width,
Speed maximumSpeed,
Length front,
OTSSimulatorInterface simulator,
OTSRoadNetwork network)
Construct a new LaneBasedIndividualGTU.
|
| Modifier and Type | Method and Description |
|---|---|
RelativePosition |
getCenter() |
ImmutableSet<RelativePosition> |
getContourPoints() |
RelativePosition |
getFront() |
RelativePosition |
getRear() |
ImmutableMap<RelativePosition.TYPE,RelativePosition> |
getRelativePositions() |
String |
toString() |
getLength, getMaximumSpeed, getWidth, laneChangeAllowed, setNoLaneChangeDistanceaddGtuToLane, addTrigger, changeLaneInstantaneously, destroy, enterLane, finalizeLaneChange, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBounds, getCarFollowingAcceleration, getDesiredSpeed, getDirection, getNetwork, getReferencePosition, getStrategicalPlanner, getStrategicalPlanner, getTurnIndicatorStatus, getTurnIndicatorStatus, getVehicleModel, init, initLaneChange, isSafeToChange, leaveLane, leaveLane, move, position, position, positions, positions, projectedPosition, reinit, scheduleEnterLeaveTriggers, setFinalizeLaneChangeEvent, setParent, setTurnIndicatorStatus, setVehicleModel, translatedPositionaddGtu, equals, getAcceleration, getAcceleration, getChildren, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getNextMoveEvent, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, hashCode, init, interruptMove, isDestroyed, removeGtu, setMaximumAcceleration, setMaximumDeceleration, setParametersaddListener, 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, waitgetLocation, getTacticalPlanner, getTacticalPlanner, isBrakingLightsOn, isBrakingLightsOnaddGtu, getAcceleration, getAcceleration, getChildren, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, isDestroyed, removeGtu, setParametersaddListener, addListener, addListener, addListener, removeListenerpublic LaneBasedIndividualGTU(String id, GTUType gtuType, Length length, Length width, Speed maximumSpeed, Length front, OTSSimulatorInterface simulator, OTSRoadNetwork network) throws GTUException
id - String; the id of the GTUgtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusTypelength - Length; the maximum length of the GTU (parallel with driving direction)width - Length; the maximum width of the GTU (perpendicular to driving direction)maximumSpeed - Speed;the maximum speed of the GTU (in the driving direction)front - Length; front distance relative to the reference positionsimulator - OTSSimulatorInterface; the simulatornetwork - OTSRoadNetwork; the network that the GTU is initially registered inGTUException - when a parameter is invalidpublic LaneBasedIndividualGTU(String id, GTUType gtuType, Length length, Length width, Speed maximumSpeed, Length front, Length centerOfGravity, OTSSimulatorInterface simulator, OTSRoadNetwork network) throws GTUException
id - String; the id of the GTUgtuType - GTUType; the type of GTU, e.g. TruckType, CarType, BusTypelength - Length; the maximum length of the GTU (parallel with driving direction)width - Length; the maximum width of the GTU (perpendicular to driving direction)maximumSpeed - Speed;the maximum speed of the GTU (in the driving direction)front - Length; front distance relative to the reference positioncenterOfGravity - Length; distance from the center of gravity to the reference positionsimulator - OTSSimulatorInterface; the simulatornetwork - OTSRoadNetwork; the network that the GTU is initially registered inGTUException - when a parameter is invalidpublic final RelativePosition getFront()
public final RelativePosition getRear()
public final RelativePosition getCenter()
public final ImmutableMap<RelativePosition.TYPE,RelativePosition> getRelativePositions()
public final ImmutableSet<RelativePosition> getContourPoints()
public final String toString()
toString in class AbstractLaneBasedGTUCopyright © 2014–2019 Delft University of Technology. All rights reserved.