public abstract class AbstractLaneBasedTemplateGTU extends AbstractLaneBasedGTU
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
AbstractLaneBasedTemplateGTU(String id,
LaneBasedTemplateGTUType templateGTUType,
Set<DirectedLanePosition> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.opentrafficsim.core.network.OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.core.gtu.GTUType |
getGTUType() |
org.djunits.value.vdouble.scalar.Length.Rel |
getLength() |
org.djunits.value.vdouble.scalar.Speed |
getMaximumVelocity() |
org.djunits.value.vdouble.scalar.Length.Rel |
getWidth() |
destroy, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBounds, getDrivingCharacteristics, getLanes, getPerception, getStrategicalPlanner, leaveLane, leaveLane, move, position, position, positions, positions, projectedPosition, toString
getAcceleration, getAcceleration, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getReference, getSimulator, getTacticalPlanner, getVelocity, getVelocity, interruptMove, setMaximumAcceleration, setMaximumDeceleration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAcceleration, getAcceleration, getFront, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getRear, getReference, getRelativePositions, getSimulator, getTacticalPlanner, getVelocity, getVelocity
public AbstractLaneBasedTemplateGTU(String id, LaneBasedTemplateGTUType templateGTUType, Set<DirectedLanePosition> initialLongitudinalPositions, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.opentrafficsim.core.network.OTSNetwork network) throws org.opentrafficsim.core.network.NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.GTUException, InstantiationException, IllegalAccessException, org.opentrafficsim.core.geometry.OTSGeometryException
id
- the id of the GTUtemplateGTUType
- the TemplateGTUType, e.g. TruckType, CarType, BusTypeinitialLongitudinalPositions
- the initial positions of the car on one or more lanesinitialSpeed
- the initial speed of the car on the lanenetwork
- the network that the GTU is initially registered inorg.opentrafficsim.core.network.NetworkException
- when the GTU cannot be placed on the given lanenl.tudelft.simulation.dsol.SimRuntimeException
- when the move method cannot be scheduledorg.opentrafficsim.core.gtu.GTUException
- when gtuFollowingModel is nullInstantiationException
- in case Perception or StrategicPlanner instantiation failsIllegalAccessException
- in case Perception or StrategicPlanner constructor is not publicorg.opentrafficsim.core.geometry.OTSGeometryException
- when the initial path is wrongpublic org.opentrafficsim.core.gtu.GTUType getGTUType()
getGTUType
in interface org.opentrafficsim.core.gtu.GTU
getGTUType
in class org.opentrafficsim.core.gtu.AbstractGTU
public final org.djunits.value.vdouble.scalar.Length.Rel getLength()
public final org.djunits.value.vdouble.scalar.Length.Rel getWidth()
public final org.djunits.value.vdouble.scalar.Speed getMaximumVelocity()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.