public class SimpleTrafficLight extends AbstractTrafficLight
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.
AbstractTrafficLight.DummyStrategicalPlanner, AbstractTrafficLight.DummyTacticalPlanner
BLOCK_GTU, dummyStrategicalPlanner, laneTL, positionTL, RELATIVE_POSITIONS
Constructor and Description |
---|
SimpleTrafficLight(String name,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network) |
addTrigger, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBehavioralCharacteristics, getBounds, getFront, getLane, getLanes, getLength, getMaximumVelocity, getPerception, getRear, getRelativePositions, getStrategicalPlanner, getWidth, isBlocked, leaveLane, position, position, positions, positions, projectedPosition, setBlocked
destroy, getAcceleration, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getTacticalPlanner, getTurnIndicatorStatus, getVelocity, getVelocity, interruptMove, isDestroyed, move, setMaximumAcceleration, setMaximumDeceleration, setTurnIndicatorStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getAcceleration, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getReference, getSimulator, getTacticalPlanner, getTurnIndicatorStatus, getVelocity, getVelocity, setTurnIndicatorStatus
public SimpleTrafficLight(String name, Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, org.opentrafficsim.core.network.OTSNetwork network) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, NamingException, nl.tudelft.simulation.dsol.SimRuntimeException, org.opentrafficsim.core.geometry.OTSGeometryException
name
- the name or id of the traffic lightlane
- The lane where the block has to be putposition
- the position on the lane as a lengthsimulator
- the simulator to avoid NullPointerExceptionsnetwork
- the network that the GTU is initially registered inorg.opentrafficsim.core.gtu.GTUException
- when GTU cannot be created.NamingException
- if an error occurs when adding the animation handlerorg.opentrafficsim.core.network.NetworkException
- when the GTU cannot be placed on the given laneorg.opentrafficsim.core.geometry.OTSGeometryException
- xnl.tudelft.simulation.dsol.SimRuntimeException
- xCopyright © 2014–2016 Delft University of Technology. All rights reserved.