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 NWBRoadElement extends AbstractNWBRoadElement {
14  
15      // the geometry
16      // junctionStart
17      private String junctionIdBegin;
18  
19      // junctionEnd
20      private String junctionIdEnd;
21  
22      // administrative direction
23      private String adminDirection;
24  
25      // driving direction
26      private String drivingDirection;
27  
28      // distance at begin of link
29      private Double beginKM;
30  
31      // distance at begin of link
32      private Double endKM;
33  
34      /**
35       * A road element from the Dutch NDW road map
36       * @param myGeom
37       * @param startNode
38       * @param endNode
39       * @param roadId
40       * @param beginDistance
41       * @param endDistance
42       * @param junctionIdBegin
43       * @param junctionIdEnd
44       * @param adminDirection
45       * @param drivingDirection
46       * @param beginKM
47       * @param endKM
48       */
49      public NWBRoadElement(Geometry myGeom, OTSNode startNode, OTSNode endNode, String roadId, Double beginDistance,
50          Double endDistance, String junctionIdBegin, String junctionIdEnd, String adminDirection, String drivingDirection,
51          Double beginKM, Double endKM) {
52          super(myGeom, startNode, endNode, roadId, beginDistance, endDistance);
53          this.junctionIdBegin = junctionIdBegin;
54          this.junctionIdEnd = junctionIdEnd;
55          this.adminDirection = adminDirection;
56          this.drivingDirection = drivingDirection;
57          this.beginKM = beginKM;
58          this.endKM = endKM;
59      }
60  
61      public String getJunctionIdBegin() {
62          return junctionIdBegin;
63      }
64  
65      public String getJunctionIdEnd() {
66          return junctionIdEnd;
67      }
68  
69      public String getAdminDirection() {
70          return adminDirection;
71      }
72  
73      public String getDrivingDirection() {
74          return drivingDirection;
75      }
76  
77      public Double getBeginKM() {
78          return beginKM;
79      }
80  
81      public Double getEndKM() {
82          return endKM;
83      }
84  
85  }