-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMarkerDB.java
More file actions
executable file
·87 lines (82 loc) · 2.21 KB
/
MarkerDB.java
File metadata and controls
executable file
·87 lines (82 loc) · 2.21 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
/*
* MarkerDB.java
* Station database class.
*
* Created on March 17, 2006, 1:23 PM
*/
/**
* @author Chen-Fu Liao
* Sr. Systems Engineer
* ITS Institute, ITS Laboratory
* Center For Transportation Studies
* University of Minnesota
* 200 Transportation and Safety Building
* 511 Washington Ave. SE
* Minneapolis, MN 55455
*/
public class MarkerDB {
private mPointF location ; // marker/station location
private float elevation = -1 ; // elevation data in ft ormeter
private byte type = 0 ; // 1-line, 2-curve, 3-tangent
private float distance ; // distance from starting landmark
private byte parent ; // index/id of parent segment from hRoadData DB
private float grade ; // grade from last to current landmark
public boolean PVTnC_Overlap = false ; // 4/4/06 added
/** Creates a new instance of MarkerDB */
public MarkerDB() {
location = new mPointF(0f, 0f);
}
public void setMarker(mPointF loc, float ele , byte index ){
location = loc;
elevation = ele;
type = 0;
parent = index;
}
public void setMarker(mPointF loc , float ele , byte index, byte seg_type){
location = loc;
elevation = ele;
type = seg_type;
parent = index;
}
public mPointF getLocation(){
return location;
}
public float getElevation(){
return elevation;
}
public byte getSegmentType() {
return type;
}
public void RESET(){ // reset station data
location = new mPointF(0f, 0f);
elevation = -1;
type = 0;
}
public void setLocation(float px , float py){
location = new mPointF(px, py);
}
public void setElevation(float ele ){
elevation = ele;
}
public void setSegmentType(byte stype ){
type = stype;
}
public void setDistance(float dist){
distance = dist;
}
public float getDistance() {
return distance;
}
public void setParentIndex(byte pID ) {
parent = pID;
}
public byte getParentIndex() {
return parent;
}
public void setGrade(float val ){
grade = val;
}
public float getGrade() {
return grade;
}
}