public class LaneBlock extends AbstractLaneBasedObject
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.
Constructor and Description |
---|
LaneBlock(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.djunits.value.vdouble.scalar.Length height) |
LaneBlock(String id,
Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.geometry.OTSLine3D geometry,
org.djunits.value.vdouble.scalar.Length height) |
Modifier and Type | Method and Description |
---|---|
LaneBlock |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the LaneBasedObject for e.g., copying a network.
|
String |
toString() |
clone, getDirection, getLane, getLocation, getLongitudinalPosition
getBounds, getGeometry, getHeight, getId
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
getBounds, makeGeometry
public LaneBlock(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djunits.value.vdouble.scalar.Length height) throws org.opentrafficsim.core.network.NetworkException
id
- the idlane
- the lane where the blockage existslongitudinalPosition
- the position on the lane; position where the GTUs have to stopheight
- the height of the blockageorg.opentrafficsim.core.network.NetworkException
- in case object cannot be placed on the lanepublic LaneBlock(String id, Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.geometry.OTSLine3D geometry, org.djunits.value.vdouble.scalar.Length height) throws org.opentrafficsim.core.network.NetworkException
id
- the idlane
- the lane where the blockage existslongitudinalPosition
- the position on the lane; position where the GTUs have to stopgeometry
- the geometry of the lane blockageheight
- the height of the blockageorg.opentrafficsim.core.network.NetworkException
- in case object cannot be placed on the lanepublic String toString()
toString
in class org.opentrafficsim.core.object.StaticObject
public LaneBlock clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone
in class AbstractLaneBasedObject
newCSE
- CrossSectionElement; the new cross section element to which the clone belongsnewSimulator
- OTSSimulatorInterface; the new simulator for this networkanimation
- boolean; whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException
- in case the cloning failsCopyright © 2014–2017 Delft University of Technology. All rights reserved.