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.
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
AbstractLaneBasedObject(Lane lane,
org.djunits.value.vdouble.scalar.Length longitudinalPosition,
org.djunits.value.vdouble.scalar.Length length,
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.djunits.value.vdouble.scalar.Length length,
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 |
|---|---|
Lane |
getLane() |
org.djunits.value.vdouble.scalar.Length |
getLength() |
org.djunits.value.vdouble.scalar.Length |
getLongitudinalPosition() |
getBounds, getGeometry, getHeight, getLocation, toStringaddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBounds, getLocationgetGeometry, getHeightaddListener, addListener, addListener, addListener, removeListenerpublic AbstractLaneBasedObject(Lane lane, org.djunits.value.vdouble.scalar.Length longitudinalPosition, org.djunits.value.vdouble.scalar.Length length, 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 lanelength - Length; The length of the object in the longitudinal direction, on the center 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.djunits.value.vdouble.scalar.Length length, 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 lanelength - Length; The length of the object in the longitudinal direction, on the center 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 LaneBasedObjectpublic final org.djunits.value.vdouble.scalar.Length getLongitudinalPosition()
getLongitudinalPosition in interface LaneBasedObjectpublic final org.djunits.value.vdouble.scalar.Length getLength()
getLength in interface LaneBasedObjectCopyright © 2014–2016 Delft University of Technology. All rights reserved.