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