package org.opentrafficsim.road.network.lane; import org.djunits.value.vdouble.scalar.Length; import org.opentrafficsim.core.geometry.OTSGeometryException; import org.opentrafficsim.core.network.NetworkException; /** * Typically, a barrier will have no lateral permeability. Sometimes, pedestrians can be given lateral permeability for the * barrier. *

* Copyright (c) 2013-2022 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 * @author Peter Knoppers */ public abstract class Barrier extends RoadMarkerAlong { /** */ private static final long serialVersionUID = 20141025L; /** * 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. * @param parentLink CrossSectionLink; the cross section link to which the element belongs. * @param beginCenterPosition Length; the lateral start position compared to the linear geometry of the cross section link. * @param endCenterPosition Length; the lateral end position compared to the linear geometry of the Cross Section Link. * @param beginWidth Length; start width, positioned symmetrically around the lateral start position. * @param endWidth Length; end width, positioned symmetrically around the lateral end position. * @throws OTSGeometryException when creation of the center line or contour geometry fails * @throws NetworkException when id equal to null or not unique */ public Barrier(final CrossSectionLink parentLink, final Length beginCenterPosition, final Length endCenterPosition, final Length beginWidth, final Length endWidth) throws OTSGeometryException, NetworkException { super(parentLink, beginCenterPosition, endCenterPosition, beginWidth, endWidth); } }