public class LaneBlockOnOff extends AbstractTrafficLight
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
RELATIVE_POSITIONS
DESTROY_EVENT, INIT_EVENT, MOVE_EVENT
Constructor and Description |
---|
LaneBlockOnOff(String name,
Lane lane,
org.djunits.value.vdouble.scalar.Length position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
org.opentrafficsim.core.network.OTSNetwork network) |
Modifier and Type | Method and Description |
---|---|
protected void |
changeColorTime()
Update the block and re-schedule.
|
String |
toString() |
addTrigger, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getBehavioralCharacteristics, getBounds, getCenter, getContourPoints, getFront, getLane, getLanes, getLength, getMaximumSpeed, getPositionTL, getRear, getRelativePositions, getStrategicalPlanner, getTacticalPlanner, getWidth, isBlocked, leaveLane, position, position, positions, positions, projectedPosition, setBlocked
destroy, getAcceleration, getGTUType, getId, getLocation, getMaximumAcceleration, getMaximumDeceleration, getOdometer, getOperationalPlan, getPerceivableContext, getReference, getSimulator, getSpeed, getTurnIndicatorStatus, init, interruptMove, isDestroyed, move, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public LaneBlockOnOff(String name, Lane lane, org.djunits.value.vdouble.scalar.Length 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
- xprotected void changeColorTime()
public String toString()
toString
in class AbstractTrafficLight
Copyright © 2014–2016 Delft University of Technology. All rights reserved.