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