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 NWBRoadElement extends AbstractNWBRoadElement
13  {
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 Geometry;
37       * @param startNode OTSNode;
38       * @param endNode OTSNode;
39       * @param roadId String;
40       * @param beginDistance Double;
41       * @param endDistance Double;
42       * @param junctionIdBegin String;
43       * @param junctionIdEnd String;
44       * @param adminDirection String;
45       * @param drivingDirection String;
46       * @param beginKM Double;
47       * @param endKM Double;
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      {
53          super(myGeom, startNode, endNode, roadId, beginDistance, endDistance);
54          this.junctionIdBegin = junctionIdBegin;
55          this.junctionIdEnd = junctionIdEnd;
56          this.adminDirection = adminDirection;
57          this.drivingDirection = drivingDirection;
58          this.beginKM = beginKM;
59          this.endKM = endKM;
60      }
61  
62      public String getJunctionIdBegin()
63      {
64          return junctionIdBegin;
65      }
66  
67      public String getJunctionIdEnd()
68      {
69          return junctionIdEnd;
70      }
71  
72      public String getAdminDirection()
73      {
74          return adminDirection;
75      }
76  
77      public String getDrivingDirection()
78      {
79          return drivingDirection;
80      }
81  
82      public Double getBeginKM()
83      {
84          return beginKM;
85      }
86  
87      public Double getEndKM()
88      {
89          return endKM;
90      }
91  
92  }