public abstract class AbstractLaneBasedObject extends org.opentrafficsim.core.object.StaticObject implements LaneBasedObject
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 |
---|
AbstractLaneBasedObject(Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.geometry.OTSLine3D geometry)
Construct a new LanebasedObject with the required fields.
|
AbstractLaneBasedObject(Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.opentrafficsim.core.geometry.OTSLine3D geometry,
org.djunits.value.vdouble.scalar.Length height)
Construct a new LanebasedObject with the required fields.
|
Modifier and Type | Method and Description |
---|---|
abstract AbstractLaneBasedObject |
clone(CrossSectionElement newCSE,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation)
Clone the LAneBasedObject for e.g., copying a network.
|
org.opentrafficsim.core.object.StaticObject |
clone(org.opentrafficsim.core.network.Network newNetwork,
org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator,
boolean animation) |
Lane |
getLane() |
org.djunits.value.vdouble.scalar.Length |
getLongitudinalPosition() |
getBounds, getGeometry, getHeight, getLocation, toString
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, getLocation, makeGeometry
public AbstractLaneBasedObject(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
lane
- Lane; The lane for which this is a sensorlongitudinalPosition
- Length; The position (between 0.0 and the length of the Lane) of the sensor on the design
line of the lanegeometry
- the geometry of the object, which provides its location and bounds as wellheight
- the height of the object, in case it is a 3D objectorg.opentrafficsim.core.network.NetworkException
- when the position on the lane is out of boundspublic AbstractLaneBasedObject(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.opentrafficsim.core.geometry.OTSLine3D geometry) throws org.opentrafficsim.core.network.NetworkException
lane
- Lane; The lane for which this is a sensorlongitudinalPosition
- Length; The position (between 0.0 and the length of the Lane) of the sensor on the design
line of the lanegeometry
- the geometry of the object, which provides its location and bounds as wellorg.opentrafficsim.core.network.NetworkException
- when the position on the lane is out of boundspublic final Lane getLane()
getLane
in interface LaneBasedObject
public final org.djunits.value.vdouble.scalar.Length getLongitudinalPosition()
getLongitudinalPosition
in interface LaneBasedObject
public final org.opentrafficsim.core.object.StaticObject clone(org.opentrafficsim.core.network.Network newNetwork, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
clone
in class org.opentrafficsim.core.object.StaticObject
org.opentrafficsim.core.network.NetworkException
public abstract AbstractLaneBasedObject clone(CrossSectionElement newCSE, org.opentrafficsim.core.dsol.OTSSimulatorInterface newSimulator, boolean animation) throws org.opentrafficsim.core.network.NetworkException
newCSE
- the new cross section element to which the clone belongsnewSimulator
- the new simulator for this networkanimation
- whether to (re)create animation or notorg.opentrafficsim.core.network.NetworkException
- in case the cloning failsCopyright © 2014–2016 Delft University of Technology. All rights reserved.