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