public class NoTrafficLane extends Lane
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.
$LastChangedDate: 2015-09-16 19:20:07 +0200 (Wed, 16 Sep 2015) $, @version $Revision: 1405 $, by $Author: averbraeck $,
initial version Feb 28, 2015
ADJACENT_MARGIN, GTU_ADD_EVENT, GTU_REMOVE_EVENT, MARGIN, OBJECT_ADD_EVENT, OBJECT_REMOVE_EVENT, SENSOR_ADD_EVENT, SENSOR_REMOVE_EVENT
crossSectionSlices, length, parentLink
Constructor and Description |
---|
NoTrafficLane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.Length lateralOffset,
org.djunits.value.vdouble.scalar.Length width) |
NoTrafficLane(CrossSectionLink parentLink,
String id,
org.djunits.value.vdouble.scalar.Length lateralOffsetAtStart,
org.djunits.value.vdouble.scalar.Length lateralOffsetAtEnd,
org.djunits.value.vdouble.scalar.Length beginWidth,
org.djunits.value.vdouble.scalar.Length endWidth) |
NoTrafficLane(CrossSectionLink parentLink,
String id,
List<CrossSectionSlice> crossSectionSlices) |
Modifier and Type | Method and Description |
---|---|
protected double |
getZ()
Retrieve the Z offset (used to determine what covers what when drawing).
|
accessibleAdjacentLanes, addDirectionality, addGTU, addGTU, addLaneBasedObject, addSensor, clone, equals, fraction, fractionSI, getDirectionality, getGtuAhead, getGtuBehind, getGtuList, getLaneBasedObjectMap, getLaneBasedObjects, getLaneBasedObjects, getLaneType, getObjectAhead, getOvertakingConditions, getSensorMap, getSensors, getSensors, getSensors, getSpeedLimit, hashCode, nextLanes, position, positionSI, prevLanes, removeDirectionality, removeGTU, removeLaneBasedObject, removeSensor, removeSpeedLimit, scheduleSensorTriggers, setSpeedLimit, toString
constructContour, getBeginWidth, getBounds, getCenterLine, getContour, getDesignLineOffsetAtBegin, getDesignLineOffsetAtEnd, getEndWidth, getId, getLateralBoundaryPosition, getLateralBoundaryPosition, getLateralCenterPosition, getLateralCenterPosition, getLength, getLocation, getParentLink, getWidth, getWidth
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, removeAllListeners, removeAllListeners, removeListener
public NoTrafficLane(CrossSectionLink parentLink, String id, org.djunits.value.vdouble.scalar.Length lateralOffsetAtStart, org.djunits.value.vdouble.scalar.Length lateralOffsetAtEnd, org.djunits.value.vdouble.scalar.Length beginWidth, org.djunits.value.vdouble.scalar.Length endWidth) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException
parentLink
- Cross Section Link to which the element belongs.id
- String; the id of the lane. Should be unique within the parentLink.lateralOffsetAtStart
- Length; the lateral offset of the design line of the new CrossSectionLink with respect to
the design line of the parent Link at the start of the parent LinklateralOffsetAtEnd
- Length; the lateral offset of the design line of the new CrossSectionLink with respect to
the design line of the parent Link at the end of the parent LinkbeginWidth
- Length; start width, positioned symmetrically around the design lineendWidth
- Length; end width, positioned symmetrically around the design lineorg.opentrafficsim.core.geometry.OTSGeometryException
- when creation of the geometry failsorg.opentrafficsim.core.network.NetworkException
- when id equal to null or not uniquepublic NoTrafficLane(CrossSectionLink parentLink, String id, org.djunits.value.vdouble.scalar.Length lateralOffset, org.djunits.value.vdouble.scalar.Length width) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException
parentLink
- Cross Section Link to which the element belongs.id
- String; the id of the lane. Should be unique within the parentLink.lateralOffset
- Length; the lateral offset of the design line of the new CrossSectionLink with respect to the
design line of the parent Linkwidth
- Length; width, positioned symmetrically around the design lineorg.opentrafficsim.core.geometry.OTSGeometryException
- when creation of the geometry failsorg.opentrafficsim.core.network.NetworkException
- when id equal to null or not uniquepublic NoTrafficLane(CrossSectionLink parentLink, String id, List<CrossSectionSlice> crossSectionSlices) throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException
parentLink
- Cross Section Link to which the element belongs.id
- String; the id of the lane. Should be unique within the parentLink.crossSectionSlices
- The offsets and widths at positions along the line, relative to the design line of the parent
link. If there is just one with and offset, there should just be one element in the list with Length = 0.
If there are more slices, the last one should be at the length of the design line. If not, a NetworkException
is thrown.org.opentrafficsim.core.geometry.OTSGeometryException
- when creation of the geometry failsorg.opentrafficsim.core.network.NetworkException
- when id equal to null or not uniqueCopyright © 2014–2016 Delft University of Technology. All rights reserved.