Class Barrier
java.lang.Object
org.djutils.event.EventProducer
org.opentrafficsim.road.network.lane.CrossSectionElement
org.opentrafficsim.road.network.lane.RoadMarkerAlong
org.opentrafficsim.road.network.lane.Barrier
- All Implemented Interfaces:
java.io.Serializable
,Locatable
,EventProducerInterface
,Identifiable
,Drawable
public abstract class Barrier extends RoadMarkerAlong
Typically, a barrier will have no lateral permeability. Sometimes, pedestrians can be given lateral permeability for the
barrier.
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-03 13:38:01 +0200 (Thu, 03 Sep 2015) $, @version $Revision: 1378 $, by $Author: averbraeck $,
initial version Oct 25, 2014
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.opentrafficsim.road.network.lane.CrossSectionElement
crossSectionSlices, FIXUPPOINTPROPORTION, length, MAXIMUMDIRECTIONERROR, parentLink
Fields inherited from interface org.djutils.event.EventProducerInterface
FIRST_POSITION, LAST_POSITION
-
Constructor Summary
Constructors Constructor Description Barrier(CrossSectionLink parentLink, Length beginCenterPosition, Length endCenterPosition, Length beginWidth, Length endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. -
Method Summary
Methods inherited from class org.opentrafficsim.road.network.lane.RoadMarkerAlong
addPermeability, getPermeabilityMap, getZ, isPermeable
Methods inherited from class org.opentrafficsim.road.network.lane.CrossSectionElement
clone, constructContour, equals, getBeginWidth, getBounds, getCenterLine, getContour, getDesignLineOffsetAtBegin, getDesignLineOffsetAtEnd, getEndWidth, getFullId, getId, getLateralBoundaryPosition, getLateralBoundaryPosition, getLateralCenterPosition, getLateralCenterPosition, getLength, getLocation, getNetwork, getParentLink, getSourceId, getWidth, getWidth, hashCode, toString
Methods inherited from class org.djutils.event.EventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, getEventTypesWithListeners, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
Constructor Details
-
Barrier
public Barrier(CrossSectionLink parentLink, Length beginCenterPosition, Length endCenterPosition, Length beginWidth, Length endWidth) throws OTSGeometryException, NetworkExceptionNote: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction.- Parameters:
parentLink
- CrossSectionLink; the cross section link to which the element belongs.beginCenterPosition
- Length; the lateral start position compared to the linear geometry of the cross section link.endCenterPosition
- Length; the lateral end position compared to the linear geometry of the Cross Section Link.beginWidth
- Length; start width, positioned symmetrically around the lateral start position.endWidth
- Length; end width, positioned symmetrically around the lateral end position.- Throws:
OTSGeometryException
- when creation of the center line or contour geometry failsNetworkException
- when id equal to null or not unique
-