class StraightPerception.StraightPerceptionModel.LaneBasedPerceivingCar
extends org.opentrafficsim.road.gtu.lane.LaneBasedIndividualGTU
CACHED_POSITION, CACHING, initialLocationThresholdDifference, NON_CACHED_POSITION
ALIGN_COUNT, ALIGNED, operationalPlan
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 and Description |
---|
LaneBasedPerceivingCar(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,
nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator,
org.opentrafficsim.core.network.OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
void |
perceive()
Perceive and reschedule.
|
void |
setPerceptionInterval(org.djunits.value.vdouble.scalar.Duration perceptionInterval) |
destroy, getCenter, getContourPoints, getFront, getRear, getRelativePositions, initWithAnimation, toString
getLength, getMaximumSpeed, getWidth, laneChangeAllowed, setNoLaneChangeDistance
addGtuToLane, addTrigger, changeLaneInstantaneously, enterLane, finalizeLaneChange, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBounds, getCarFollowingAcceleration, getDesiredSpeed, getDirection, getReferencePosition, getStrategicalPlanner, getStrategicalPlanner, getTurnIndicatorStatus, getTurnIndicatorStatus, getVehicleModel, init, initLaneChange, isSafeToChange, leaveLane, leaveLane, move, position, position, positions, positions, projectedPosition, reinit, scheduleEnterLeaveTriggers, setParent, setTurnIndicatorStatus, setVehicleModel, translatedPosition
addGtu, equals, getAcceleration, getAcceleration, getBaseColor, getChildren, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getPerceivableContext, getReference, getSimulator, getSpeed, getSpeed, hashCode, init, interruptMove, isDestroyed, removeGtu, setMaximumAcceleration, setMaximumDeceleration, setParameters
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, getTacticalPlanner, getTacticalPlanner, isBrakingLightsOn, isBrakingLightsOn
addGtu, getAcceleration, getAcceleration, getBaseColor, getChildren, getGTUType, getId, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOdometer, getOperationalPlan, getOperationalPlan, getParameters, getParent, getReference, getSimulator, getSpeed, getSpeed, isDestroyed, removeGtu, setParameters
LaneBasedPerceivingCar(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, nl.tudelft.simulation.dsol.simulators.DEVSSimulatorInterface.TimeDoubleUnit simulator, org.opentrafficsim.core.network.OTSNetwork network) throws NamingException, org.opentrafficsim.core.network.NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.base.parameters.ParameterException
id
- ID; 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)simulator
- DEVSSimulatorInterface.TimeDoubleUnit; the simulatornetwork
- the network that the GTU is initially registered inNamingException
- if an error occurs when adding the animation handlerorg.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 a parameter is invalidorg.opentrafficsim.core.geometry.OTSGeometryException
- when the initial path is wrongorg.opentrafficsim.base.parameters.ParameterException
- in case of a parameter problem.public void setPerceptionInterval(org.djunits.value.vdouble.scalar.Duration perceptionInterval)
perceptionInterval
- the interval for perceiving.public void perceive() throws nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, org.opentrafficsim.base.parameters.ParameterException
nl.tudelft.simulation.dsol.SimRuntimeException
- RTEorg.opentrafficsim.core.gtu.GTUException
- GTUEorg.opentrafficsim.core.network.NetworkException
- NEorg.opentrafficsim.base.parameters.ParameterException
- in case of a parameter problem.Copyright © 2014–2018 Delft University of Technology. All rights reserved.