Barrier.java
package org.opentrafficsim.core.network.lane;
import org.opentrafficsim.core.network.NetworkException;
import org.opentrafficsim.core.unit.LengthUnit;
import org.opentrafficsim.core.value.vdouble.scalar.DoubleScalar;
/**
* Typically, a barrier will have no lateral permeability. Sometimes, pedestrians can be given lateral permeability for the
* barrier.
* <p>
* Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
* BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
* <p>
* @version Oct 25, 2014 <br>
* @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
* @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
*/
public class Barrier extends RoadMarkerAlong
{
/**
* <b>Note:</b> 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 Cross Section Link to which the element belongs.
* @param lateralCenterPosition the lateral start position compared to the linear geometry of the Cross Section Link.
* @param beginWidth start width, positioned <i>symmetrically around</i> the lateral start position.
* @param endWidth end width, positioned <i>symmetrically around</i> the lateral end position.
* @throws NetworkException
*/
public Barrier(final CrossSectionLink<?, ?> parentLink, final DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
final DoubleScalar.Rel<LengthUnit> beginWidth, final DoubleScalar.Rel<LengthUnit> endWidth) throws NetworkException
{
super(parentLink, lateralCenterPosition, beginWidth, endWidth);
}
}