public abstract class AbstractLaneBasedIndividualGTU extends AbstractLaneBasedGTU
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
CACHED_POSITION, CACHING, initialLocationThresholdDifference, NON_CACHED_POSITION
LANE_ENTER_EVENT, LANE_EXIT_EVENT, LANEBASED_DESTROY_EVENT, LANEBASED_INIT_EVENT, LANEBASED_MOVE_EVENT, LINK_ENTER_EVENT, LINK_EXIT_EVENT
Constructor and Description |
---|
AbstractLaneBasedIndividualGTU(String id,
org.opentrafficsim.core.gtu.GTUType gtuType,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length width,
org.djunits.value.vdouble.scalar.Speed maximumSpeed,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new AbstractLaneBasedIndividualGTU.
|
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Length |
getLength() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumSpeed() |
org.djunits.value.vdouble.scalar.Length |
getWidth() |
boolean |
laneChangeAllowed()
Returns whether a lane change is allowed.
|
void |
setNoLaneChangeDistance(org.djunits.value.vdouble.scalar.Length distance)
Set distance over which the GTU should not change lane after being created.
|
addTrigger, changeLaneInstantaneously, destroy, determineNextLane, determinePrevLane, enterLane, executeLaneChangeFinalization, finalizeLaneChange, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBehavioralCharacteristics, getBounds, getDirection, getReferencePosition, getStrategicalPlanner, getTacticalPlanner, init, initLaneChange, isSafeToChange, leaveLane, leaveLane, move, position, position, positions, positions, projectedPosition, scheduleEnterLeaveTriggers, toString, translatedPosition
equals, getAcceleration, getBaseColor, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getSpeed, getTurnIndicatorStatus, hashCode, init, interruptMove, isDestroyed, setMaximumAcceleration, setMaximumDeceleration, setTurnIndicatorStatus
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation
getAcceleration, getBaseColor, getCenter, getContourPoints, getFront, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getRear, getReference, getRelativePositions, getSimulator, getSpeed, getTurnIndicatorStatus, setTurnIndicatorStatus
public AbstractLaneBasedIndividualGTU(String id, org.opentrafficsim.core.gtu.GTUType gtuType, org.djunits.value.vdouble.scalar.Length length, org.djunits.value.vdouble.scalar.Length width, org.djunits.value.vdouble.scalar.Speed maximumSpeed, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.network.OTSNetwork network) throws org.opentrafficsim.core.gtu.GTUException
id
- the id of the GTUgtuType
- the type of GTU, e.g. TruckType, CarType, BusTypelength
- the maximum length of the GTU (parallel with driving direction)width
- the maximum width of the GTU (perpendicular to driving direction)maximumSpeed
- the maximum speed of the GTU (in the driving direction)simulator
- the simulatornetwork
- the network that the GTU is initially registered inorg.opentrafficsim.core.gtu.GTUException
- when a parameter is invalidpublic 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 void setNoLaneChangeDistance(org.djunits.value.vdouble.scalar.Length distance)
distance
- distance over which the GTU should not change lane after being createdpublic final boolean laneChangeAllowed()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.