SectionInfo.java
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package com.bsth.entity;
import java.util.List;
import com.bsth.geo.Point;
/**
* @author Hill
*/
public class SectionInfo {
private final static double SPEEDING_LIMIT = 60;
private int id;
private String sectionCode;
private String roadCoding;
private String sectionName;
private double sectionDistance;
private double speedLimit;
private List<Point> points;
private int lineId;
private int lineCode;
private int directions;
private int isRoadeSpeed;
public int getIsRoadeSpeed() {
return isRoadeSpeed;
}
public void setIsRoadeSpeed(int isRoadeSpeed) {
this.isRoadeSpeed = isRoadeSpeed;
}
public int getDirections() {
return directions;
}
public void setDirections(int directions) {
this.directions = directions;
}
public int getLineId() {
return lineId;
}
public void setLineId(int lineId) {
this.lineId = lineId;
}
public List<Point> getPoints() {
return points;
}
public void setPoints(List<Point> points) {
this.points = points;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSectionCode() {
return sectionCode;
}
public void setSectionCode(String sectionCode) {
this.sectionCode = sectionCode;
}
public String getRoadCoding() {
return roadCoding;
}
public void setRoadCoding(String roadCoding) {
this.roadCoding = roadCoding;
}
public String getSectionName() {
return sectionName;
}
public void setSectionName(String sectionName) {
this.sectionName = sectionName;
}
public double getSectionDistance() {
return sectionDistance;
}
public void setSectionDistance(double sectionDistance) {
this.sectionDistance = sectionDistance;
}
public double getSpeedLimit() {
if (speedLimit > 0) return speedLimit;
else return SPEEDING_LIMIT;
}
public void setSpeedLimit(double speedLimit) {
this.speedLimit = speedLimit;
}
public int getLineCode() {
return lineCode;
}
public void setLineCode(int lineCode) {
this.lineCode = lineCode;
}
}