Barrier.java

  1. package org.opentrafficsim.road.network.lane;

  2. import org.djunits.value.vdouble.scalar.Length;
  3. import org.opentrafficsim.core.geometry.OTSGeometryException;
  4. import org.opentrafficsim.core.network.NetworkException;

  5. /**
  6.  * Typically, a barrier will have no lateral permeability. Sometimes, pedestrians can be given lateral permeability for the
  7.  * barrier.
  8.  * <p>
  9.  * Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  10.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  11.  * <p>
  12.  * $LastChangedDate: 2015-09-03 13:38:01 +0200 (Thu, 03 Sep 2015) $, @version $Revision: 1378 $, by $Author: averbraeck $,
  13.  * initial version Oct 25, 2014 <br>
  14.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  15.  * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
  16.  */
  17. public abstract class Barrier extends RoadMarkerAlong
  18. {
  19.     /** */
  20.     private static final long serialVersionUID = 20141025L;

  21.     /**
  22.      * <b>Note:</b> LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
  23.      * the StartNode towards the EndNode as the longitudinal direction.
  24.      * @param parentLink CrossSectionLink; the cross section link to which the element belongs.
  25.      * @param beginCenterPosition Length; the lateral start position compared to the linear geometry of the cross section link.
  26.      * @param endCenterPosition Length; the lateral end position compared to the linear geometry of the Cross Section Link.
  27.      * @param beginWidth Length; start width, positioned <i>symmetrically around</i> the lateral start position.
  28.      * @param endWidth Length; end width, positioned <i>symmetrically around</i> the lateral end position.
  29.      * @throws OTSGeometryException when creation of the center line or contour geometry fails
  30.      * @throws NetworkException when id equal to null or not unique
  31.      */
  32.     public Barrier(final CrossSectionLink parentLink, final Length beginCenterPosition, final Length endCenterPosition,
  33.             final Length beginWidth, final Length endWidth) throws OTSGeometryException, NetworkException
  34.     {
  35.         super(parentLink, beginCenterPosition, endCenterPosition, beginWidth, endWidth);
  36.     }

  37. }