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
12
13 public class NWBRoadElement extends AbstractNWBRoadElement
14 {
15
16
17
18 private String junctionIdBegin;
19
20
21 private String junctionIdEnd;
22
23
24 private String adminDirection;
25
26
27 private String drivingDirection;
28
29
30 private Double beginKM;
31
32
33 private Double endKM;
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 }