Class NoTrafficLane
- java.lang.Object
- 
- org.djutils.event.EventProducer
- 
- org.opentrafficsim.road.network.lane.CrossSectionElement
- 
- org.opentrafficsim.road.network.lane.Lane
- 
- org.opentrafficsim.road.network.lane.NoTrafficLane
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Locatable,- EventProducerInterface,- Identifiable,- Drawable
 
 public class NoTrafficLane extends Lane Lane without traffic, e.g. emergency lane next to highway.Copyright (c) 2013-2020 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 - Author:
- Alexander Verbraeck
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.opentrafficsim.road.network.lane.LaneGTU_ADD_EVENT, GTU_REMOVE_EVENT, MARGIN, OBJECT_ADD_EVENT, OBJECT_REMOVE_EVENT, SENSOR_ADD_EVENT, SENSOR_REMOVE_EVENT
 - 
Fields inherited from class org.opentrafficsim.road.network.lane.CrossSectionElementcrossSectionSlices, FIXUPPOINTPROPORTION, length, MAXIMUMDIRECTIONERROR, parentLink
 - 
Fields inherited from class org.djutils.event.EventProducereventProducerImpl
 - 
Fields inherited from interface org.djutils.event.EventProducerInterfaceFIRST_POSITION, LAST_POSITION
 
- 
 - 
Constructor SummaryConstructors Constructor Description NoTrafficLane(CrossSectionLink parentLink, String id, List<CrossSectionSlice> crossSectionSlices)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, Length lateralOffsetAtStart, Length lateralOffsetAtEnd, Length beginWidth, Length endWidth, boolean fixGradualLateralOffset)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegetZ()Retrieve the Z offset (used to determine what covers what when drawing).- 
Methods inherited from class org.opentrafficsim.road.network.lane.LaneaccessibleAdjacentLanesLegal, 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, getSensorMap, getSensors, getSensors, getSensors, getSpeedLimit, hashCode, indexOfGtu, indexOfGtu, nextLanes, numberOfGtus, numberOfGtus, position, positionSI, prevLanes, removeGTU, removeLaneBasedObject, removeSensor, removeSpeedLimit, scheduleSensorTriggers, setSpeedLimit, toString, upstreamLanes
 - 
Methods inherited from class org.opentrafficsim.road.network.lane.CrossSectionElementconstructContour, getBeginWidth, getBounds, getCenterLine, getContour, getDesignLineOffsetAtBegin, getDesignLineOffsetAtEnd, getEndWidth, getFullId, getId, getLateralBoundaryPosition, getLateralBoundaryPosition, getLateralCenterPosition, getLateralCenterPosition, getLength, getLocation, getNetwork, getParentLink, getSourceId, getWidth, getWidth
 - 
Methods inherited from class org.djutils.event.EventProduceraddListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
 
- 
 
- 
- 
- 
Constructor Detail- 
NoTrafficLanepublic NoTrafficLane(CrossSectionLink parentLink, String id, Length lateralOffsetAtStart, Length lateralOffsetAtEnd, Length beginWidth, Length endWidth, boolean fixGradualLateralOffset) throws OTSGeometryException, NetworkException - Parameters:
- 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 Link
- lateralOffsetAtEnd- 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 Link
- beginWidth- Length; start width, positioned symmetrically around the design line
- endWidth- Length; end width, positioned symmetrically around the design line
- fixGradualLateralOffset- boolean; true if gradualLateralOffset needs to be fixed
- Throws:
- OTSGeometryException- when creation of the geometry fails
- NetworkException- when id equal to null or not unique
 
 - 
NoTrafficLanepublic NoTrafficLane(CrossSectionLink parentLink, String id, Length lateralOffsetAtStart, Length lateralOffsetAtEnd, Length beginWidth, Length endWidth) throws OTSGeometryException, NetworkException - Parameters:
- 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 Link
- lateralOffsetAtEnd- 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 Link
- beginWidth- Length; start width, positioned symmetrically around the design line
- endWidth- Length; end width, positioned symmetrically around the design line
- Throws:
- OTSGeometryException- when creation of the geometry fails
- NetworkException- when id equal to null or not unique
 
 - 
NoTrafficLanepublic NoTrafficLane(CrossSectionLink parentLink, String id, Length lateralOffset, Length width) throws OTSGeometryException, NetworkException - Parameters:
- 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 Link
- width- Length; width, positioned symmetrically around the design line
- Throws:
- OTSGeometryException- when creation of the geometry fails
- NetworkException- when id equal to null or not unique
 
 - 
NoTrafficLanepublic NoTrafficLane(CrossSectionLink parentLink, String id, List<CrossSectionSlice> crossSectionSlices) throws OTSGeometryException, NetworkException - Parameters:
- 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.
- Throws:
- OTSGeometryException- when creation of the geometry fails
- NetworkException- when id equal to null or not unique
 
 
- 
 
-