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