View Javadoc
1   package org.opentrafficsim.core.network.lane;
2   
3   import org.opentrafficsim.core.network.NetworkException;
4   import org.opentrafficsim.core.unit.LengthUnit;
5   import org.opentrafficsim.core.value.vdouble.scalar.DoubleScalar;
6   
7   /**
8    * <p>
9    * Copyright (c) 2013-2014 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/node/13">OpenTrafficSim License</a>.
11   * <p>
12   * @version Aug 19, 2014 <br>
13   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
14   * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
15   * @author <a href="http://www.citg.tudelft.nl">Guus Tamminga</a>
16   */
17  public class Shoulder extends CrossSectionElement
18  {
19      /**
20       * @param parentLink Cross Section Link to which the element belongs.
21       * @param lateralPosition the lateral start position compared to the linear geometry of the Cross Section Link.
22       * @param beginWidth start width, positioned <i>symmetrically around</i> the lateral start position.
23       * @param endWidth end width, positioned <i>symmetrically around</i> the lateral end position.
24       * @throws NetworkException 
25       */
26      public Shoulder(final CrossSectionLink<?, ?> parentLink, final DoubleScalar.Rel<LengthUnit> lateralPosition,
27          final DoubleScalar.Rel<LengthUnit> beginWidth, final DoubleScalar.Rel<LengthUnit> endWidth) throws NetworkException
28      {
29          super(parentLink, lateralPosition, lateralPosition, beginWidth, endWidth);
30      }
31  
32      /** {@inheritDoc} */
33      @Override
34      protected final double getZ()
35      {
36          return -0.0002;
37      }
38  }