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      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
26       * @param startNode
27       * @param endNode
28       * @param roadId
29       * @param beginDistance
30       * @param endDistance
31       * @param laneType
32       * @param numberOfLanes
33       * @param sideCode
34       */
35      public NWBSpecialLane(Geometry myGeom, OTSNode startNode, OTSNode endNode, String roadId, Double beginDistance,
36          Double endDistance, String laneType, Integer numberOfLanes, String sideCode) {
37          super(myGeom, startNode, endNode, roadId, beginDistance, endDistance);
38          this.laneType = laneType;
39          this.numberOfLanes = numberOfLanes;
40          this.sideCode = sideCode;
41      }
42  
43      public String getLaneType() {
44          return laneType;
45      }
46  
47      public Integer getNumberOfLanes() {
48          return numberOfLanes;
49      }
50  
51      public String getSideCode() {
52          return sideCode;
53      }
54  
55  }