public class NoTrafficLane extends Lane
Copyright (c) 2013-2019 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
GTU_ADD_EVENT, GTU_REMOVE_EVENT, MARGIN, OBJECT_ADD_EVENT, OBJECT_REMOVE_EVENT, SENSOR_ADD_EVENT, SENSOR_REMOVE_EVENT
crossSectionSlices, length, parentLink
listeners
FIRST_POSITION, LAST_POSITION
Constructor and Description |
---|
NoTrafficLane(CrossSectionLink parentLink,
String id,
Length lateralOffset,
Length width) |
NoTrafficLane(CrossSectionLink parentLink,
String id,
Length lateralOffsetAtStart,
Length lateralOffsetAtEnd,
Length beginWidth,
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).
|
accessibleAdjacentLanesLegal, accessibleAdjacentLanesPhysical, addGTU, addGTU, addLaneBasedObject, addSensor, clone, downstreamLanes, equals, fraction, fractionSI, getFirstGtu, getGtu, getGtu, getGtuAhead, getGtuBehind, getGtuList, getGtuList, getHighestSpeedLimit, getLaneBasedObjectMap, getLaneBasedObjects, getLaneBasedObjects, getLaneType, getLastGtu, getLowestSpeedLimit, getObjectAhead, getObjectBehind, getOvertakingConditions, getSensorMap, getSensors, getSensors, getSensors, getSpeedLimit, hashCode, indexOfGtu, indexOfGtu, nextLanes, numberOfGtus, numberOfGtus, position, positionSI, prevLanes, removeGTU, removeLaneBasedObject, removeSensor, removeSpeedLimit, scheduleSensorTriggers, setSpeedLimit, toString, upstreamLanes
constructContour, getBeginWidth, getBounds, getCenterLine, getContour, getDesignLineOffsetAtBegin, getDesignLineOffsetAtEnd, getEndWidth, getFullId, 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, Length lateralOffsetAtStart, Length lateralOffsetAtEnd, Length beginWidth, Length endWidth) throws OTSGeometryException, NetworkException
parentLink
- CrossSectionLink; 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 lineOTSGeometryException
- when creation of the geometry failsNetworkException
- when id equal to null or not uniquepublic NoTrafficLane(CrossSectionLink parentLink, String id, Length lateralOffset, Length width) throws OTSGeometryException, NetworkException
parentLink
- CrossSectionLink; 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 lineOTSGeometryException
- when creation of the geometry failsNetworkException
- when id equal to null or not uniquepublic NoTrafficLane(CrossSectionLink parentLink, String id, List<CrossSectionSlice> crossSectionSlices) throws OTSGeometryException, NetworkException
parentLink
- CrossSectionLink; Cross Section Link to which the element belongs.id
- String; the id of the lane. Should be unique within the parentLink.crossSectionSlices
- List<CrossSectionSlice>; 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.OTSGeometryException
- when creation of the geometry failsNetworkException
- when id equal to null or not uniqueCopyright © 2014–2019 Delft University of Technology. All rights reserved.