Class Barrier

  • All Implemented Interfaces:
    Serializable, Locatable, EventProducerInterface, org.opentrafficsim.base.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-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, Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • Barrier

        public Barrier​(CrossSectionLink parentLink,
                       Length beginCenterPosition,
                       Length endCenterPosition,
                       Length beginWidth,
                       Length endWidth)
                throws OTSGeometryException,
                       NetworkException
        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.
        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 fails
        NetworkException - when id equal to null or not unique