View Javadoc
1   package org.opentrafficsim.core.network.lane;
2   
3   import org.opentrafficsim.core.network.LongitudinalDirectionality;
4   import org.opentrafficsim.core.network.NetworkException;
5   import org.opentrafficsim.core.unit.FrequencyUnit;
6   import org.opentrafficsim.core.unit.LengthUnit;
7   import org.opentrafficsim.core.value.vdouble.scalar.DoubleScalar;
8   
9   /**
10   * Lane without traffic, e.g. emergency lane next to highway.
11   * <p>
12   * Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
13   * BSD-style license. See <a href="http://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
14   * <p>
15   * @version Feb 28, 2015 <br>
16   * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
17   */
18  public class NoTrafficLane extends Lane
19  {
20  
21      /**
22       * @param parentLink Cross Section Link to which the element belongs.
23       * @param lateralOffsetAtStart DoubleScalar.Rel&lt;LengthUnit&gt;; the lateral offset of the design line of the new
24       *            CrossSectionLink with respect to the design line of the parent Link at the start of the parent Link
25       * @param lateralOffsetAtEnd DoubleScalar.Rel&lt;LengthUnit&gt;; the lateral offset of the design line of the new
26       *            CrossSectionLink with respect to the design line of the parent Link at the end of the parent Link
27       * @param beginWidth DoubleScalar.Rel&lt;LengthUnit&gt;; start width, positioned <i>symmetrically around</i> the design line
28       * @param endWidth DoubleScalar.Rel&lt;LengthUnit&gt;; end width, positioned <i>symmetrically around</i> the design line
29       * @param laneType type of lane to deduce compatibility with GTU types
30       * @param directionality in direction of geometry, reverse, or both
31       * @param capacity Lane capacity in vehicles per time unit. This is a mutable property (e.g., blockage)
32       * @throws NetworkException when creation of the geometry fails
33       */
34      @SuppressWarnings("checkstyle:parameternumber")
35      public NoTrafficLane(final CrossSectionLink<?, ?> parentLink, final DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
36          final DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd, final DoubleScalar.Rel<LengthUnit> beginWidth,
37          final DoubleScalar.Rel<LengthUnit> endWidth, final LaneType<?> laneType,
38          final LongitudinalDirectionality directionality, final DoubleScalar.Abs<FrequencyUnit> capacity)
39          throws NetworkException
40      {
41          super(parentLink, lateralOffsetAtStart, lateralOffsetAtEnd, beginWidth, endWidth, laneType, directionality, capacity);
42      }
43  
44      /** {@inheritDoc} */
45      @Override
46      protected final double getZ()
47      {
48          return -0.00005;
49      }
50  
51  }