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 NWBDrivingLane extends AbstractNWBRoadElement {
14  
15      // number of driving lanes at start of link
16      private Integer startNumberOfLanes;
17  
18      // number of driving lanes at end of link
19      private Integer endNumberOfLanes;
20  
21      // kantCode: "H" of "T" generally shoukld equal the drivingDirection of the corresponding NWB link
22      private String sideCode;
23  
24      /**
25       * @param myGeom
26       * @param startNode
27       * @param endNode
28       * @param roadId
29       * @param beginDistance
30       * @param endDistance
31       * @param startNumberOfLanes 
32       * @param endNumberOfLanes 
33       * @param sideCode
34       */
35      public NWBDrivingLane(Geometry myGeom, OTSNode startNode, OTSNode endNode, String roadId, Double beginDistance,
36          Double endDistance, Integer startNumberOfLanes, Integer endNumberOfLanes, String sideCode) {
37          super(myGeom, startNode, endNode, roadId, beginDistance, endDistance);
38          this.startNumberOfLanes = startNumberOfLanes;
39          this.endNumberOfLanes = endNumberOfLanes;
40          this.sideCode = sideCode;
41      }
42  
43      public Integer getStartNumberOfLanes() {
44          return startNumberOfLanes;
45      }
46  
47      public Integer getEndNumberOfLanes() {
48          return endNumberOfLanes;
49      }
50  
51      public String getSideCode() {
52          return sideCode;
53      }
54  
55  }