View Javadoc
1   /**
2    *
3    */
4   package org.opentrafficsim.road.network.factory.shape;
5   
6   import org.opentrafficsim.core.network.OTSNode;
7   
8   import com.vividsolutions.jts.geom.Geometry;
9   
10  /**
11   * @author P070518
12   */
13  public class NWBSpecialLane extends AbstractNWBRoadElement
14  {
15  
16      private String laneType;
17  
18      // number of driving lanes
19      private Integer numberOfLanes;
20  
21      // kantCode: "H" of "T" generally shoukld equal the drivingDirection of the corresponding NWB link
22      private String sideCode;
23  
24      /**
25       * Specific lane types such as on-ramp and off-ramp or lanes at weaving area
26       * @param myGeom Geometry;
27       * @param startNode OTSNode;
28       * @param endNode OTSNode;
29       * @param roadId String;
30       * @param beginDistance Double;
31       * @param endDistance Double;
32       * @param laneType String;
33       * @param numberOfLanes Integer;
34       * @param sideCode String;
35       */
36      public NWBSpecialLane(Geometry myGeom, OTSNode startNode, OTSNode endNode, String roadId, Double beginDistance,
37              Double endDistance, String laneType, Integer numberOfLanes, String sideCode)
38      {
39          super(myGeom, startNode, endNode, roadId, beginDistance, endDistance);
40          this.laneType = laneType;
41          this.numberOfLanes = numberOfLanes;
42          this.sideCode = sideCode;
43      }
44  
45      public String getLaneType()
46      {
47          return laneType;
48      }
49  
50      public Integer getNumberOfLanes()
51      {
52          return numberOfLanes;
53      }
54  
55      public String getSideCode()
56      {
57          return sideCode;
58      }
59  
60  }