public class LaneBlockOnOff 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.
BLOCK_GTU, lane, position| Constructor and Description |
|---|
LaneBlockOnOff(String name,
Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel position,
org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeColorTime() |
String |
toString() |
bestAccessibleAdjacentLane, deltaTimeForDistance, destroy, enterLane, fractionalPosition, fractionalPosition, fractionalPositions, fractionalPositions, getAcceleration, getAcceleration, getBounds, getFront, getGTUFollowingModel, getLane, getLaneChangeDistanceAndDirection, getLastEvaluationTime, getLateralVelocity, getLength, getLocation, getLongitudinalVelocity, getLongitudinalVelocity, getMaximumVelocity, getNextEvaluationTime, getOdometer, getRear, getRelativePositions, getSimulator, getVelocity, getWidth, headway, headway, isBlocked, leaveLane, parallel, parallel, position, position, positions, positions, projectedPosition, setBlocked, timeAtDistancegetGTUType, getId, getReference, getRouteNavigator, setRouteNavigatorpublic LaneBlockOnOff(String name, Lane lane, org.djunits.value.vdouble.scalar.Length.Rel position, org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator) throws org.opentrafficsim.core.gtu.GTUException, org.opentrafficsim.core.network.NetworkException, NamingException
name - the name of the OnOffTrafficLightlane - The lane where the block has to be putposition - the position on the lane as a lengthsimulator - the simulator to avoid NullPointerExceptionsorg.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 laneprotected void changeColorTime()
public String toString()
toString in class AbstractTrafficLightCopyright © 2014–2015 Delft University of Technology. All rights reserved.