class StraightPerceptionModel.LaneBasedPerceivingCar
extends org.opentrafficsim.road.gtu.lane.LaneBasedIndividualGTU
Constructor and Description |
---|
LaneBasedPerceivingCar(String id,
org.opentrafficsim.core.gtu.GTUType gtuType,
Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Speed maximumVelocity,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner strategicalPlanner,
org.opentrafficsim.road.gtu.lane.perception.LanePerceptionFull perception,
Class<? extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D> animationClass,
org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer,
org.opentrafficsim.core.network.OTSNetwork network)
Construct a new LaneBasedIndividualCar.
|
LaneBasedPerceivingCar(String id,
org.opentrafficsim.core.gtu.GTUType gtuType,
Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions,
org.djunits.value.vdouble.scalar.Speed initialSpeed,
org.djunits.value.vdouble.scalar.Length.Rel length,
org.djunits.value.vdouble.scalar.Length.Rel width,
org.djunits.value.vdouble.scalar.Speed maximumVelocity,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner strategicalPlanner,
org.opentrafficsim.road.gtu.lane.perception.LanePerceptionFull perception,
org.opentrafficsim.core.network.OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
void |
perceive()
Perceive and reschedule.
|
void |
setPerceptionInterval(org.djunits.value.vdouble.scalar.Time.Rel perceptionInterval) |
destroy, getFront, getRear, getRelativePositions
getLength, getMaximumVelocity, getWidth
addTrigger, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBehavioralCharacteristics, getBounds, getLanes, getPerception, getStrategicalPlanner, leaveLane, leaveLane, move, position, position, positions, positions, projectedPosition, toString
getAcceleration, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getTacticalPlanner, getTurnIndicatorStatus, getVelocity, getVelocity, interruptMove, isDestroyed, setMaximumAcceleration, setMaximumDeceleration, setTurnIndicatorStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAcceleration, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getReference, getSimulator, getTacticalPlanner, getTurnIndicatorStatus, getVelocity, getVelocity, setTurnIndicatorStatus
LaneBasedPerceivingCar(String id, org.opentrafficsim.core.gtu.GTUType gtuType, Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.djunits.value.vdouble.scalar.Length.Rel length, org.djunits.value.vdouble.scalar.Length.Rel width, org.djunits.value.vdouble.scalar.Speed maximumVelocity, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner strategicalPlanner, org.opentrafficsim.road.gtu.lane.perception.LanePerceptionFull perception, 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
id
- ID; the id of the GTUgtuType
- GTUType; the type of GTU, e.g. TruckType, CarType, BusTypeinitialLongitudinalPositions
- Map<Lane, Length.Rel>; the initial positions of the car on one or more
lanesinitialSpeed
- Speed; the initial speed of the car on the lanelength
- Length.Rel; the maximum length of the GTU (parallel with driving direction)width
- Length.Rel; the maximum width of the GTU (perpendicular to driving direction)maximumVelocity
- Speed;the maximum speed of the GTU (in the driving direction)simulator
- OTSDEVSSimulatorInterface; the simulatorstrategicalPlanner
- the strategical planner (e.g., route determination) to useperception
- the lane-based perception model of the GTUnetwork
- 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 wrongLaneBasedPerceivingCar(String id, org.opentrafficsim.core.gtu.GTUType gtuType, Set<org.opentrafficsim.road.network.lane.DirectedLanePosition> initialLongitudinalPositions, org.djunits.value.vdouble.scalar.Speed initialSpeed, org.djunits.value.vdouble.scalar.Length.Rel length, org.djunits.value.vdouble.scalar.Length.Rel width, org.djunits.value.vdouble.scalar.Speed maximumVelocity, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.road.gtu.strategical.LaneBasedStrategicalPlanner strategicalPlanner, org.opentrafficsim.road.gtu.lane.perception.LanePerceptionFull perception, Class<? extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D> animationClass, org.opentrafficsim.core.gtu.animation.GTUColorer gtuColorer, 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
id
- ID; the id of the GTUgtuType
- GTUTYpe; the type of GTU, e.g. TruckType, CarType, BusTypeinitialLongitudinalPositions
- Map<Lane, Length.Rel>; the initial positions of the car on one or more
lanesinitialSpeed
- Speed; the initial speed of the car on the lanelength
- Length.Rel; the maximum length of the GTU (parallel with driving direction)width
- Length.Rel; the maximum width of the GTU (perpendicular to driving direction)maximumVelocity
- Speed;the maximum speed of the GTU (in the driving direction)simulator
- OTSDEVSSimulatorInterface; the simulatorstrategicalPlanner
- the strategical planner (e.g., route determination) to useperception
- the lane-based perception model of the GTUanimationClass
- Class<? extends Renderable2D>; the class for animation or null if no animationgtuColorer
- GTUColorer; the GTUColorer that will be linked from the animation to determine the color (may be
null in which case a default will be used)network
- 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 wrongpublic void setPerceptionInterval(org.djunits.value.vdouble.scalar.Time.Rel 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
nl.tudelft.simulation.dsol.SimRuntimeException
- RTEorg.opentrafficsim.core.gtu.GTUException
- GTUEorg.opentrafficsim.core.network.NetworkException
- NECopyright © 2014–2016 Delft University of Technology. All rights reserved.