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 abstract class AbstractNWBRoadElement
13 {
14
15
16 private Geometry myGeom;
17
18 private OTSNode startNode;
19
20 private OTSNode endNode;
21
22
23 private String roadId;
24
25
26 private Double beginDistance;
27
28
29 private Double endDistance;
30
31
32
33
34
35
36
37
38
39 public AbstractNWBRoadElement(final Geometry myGeom, final OTSNode startNode, final OTSNode endNode, final String roadId,
40 final Double beginDistance, final Double endDistance)
41 {
42 this.myGeom = myGeom;
43 this.startNode = startNode;
44 this.endNode = endNode;
45 this.roadId = roadId;
46 this.beginDistance = beginDistance;
47 this.endDistance = endDistance;
48 }
49
50 public Geometry getMyGeom()
51 {
52 return myGeom;
53 }
54
55 public OTSNode getStartNode()
56 {
57 return startNode;
58 }
59
60 public OTSNode getEndNode()
61 {
62 return endNode;
63 }
64
65 public String getRoadId()
66 {
67 return roadId;
68 }
69
70 public Double getBeginDistance()
71 {
72 return beginDistance;
73 }
74
75 public Double getEndDistance()
76 {
77 return endDistance;
78 }
79
80 }