forked from mushfiq/rssi-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapRecord.java
More file actions
199 lines (170 loc) · 4.25 KB
/
MapRecord.java
File metadata and controls
199 lines (170 loc) · 4.25 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
package dataobjects;
import java.util.Date;
/**
* This class contains the information of the map. It includes the
* height and width of the map and mapImage Id for retrieving the mapImage
* @author Maheswari
*
*/
public class MapRecord
{
String mapId = "";
public void setMapId(String mapId)
{
this.mapId = mapId;
}
public String getMapId()
{
return mapId;
}
float height = 0.0f;
public void setHeight(float height)
{
this.height = height;
}
public float getHeight()
{
return height;
}
float width = 0.0f;
public void setWidth(float width)
{
this.width = width;
}
public float getWidth()
{
return width;
}
float scalingX = 0.0f; //The scaling which give us the information how many pixel represent one meter
/**
* Getter for the scalingX value
* @author Silvio
* @return The scaling for the x-direction
*/
public float getScalingX()
{
return scalingX;
}
/**
* Setter for the scalingX value
* @author Silvio
* @param scaling The scaling value to set
*/
public void setScalingX(float scaling)
{
this.scalingX = scaling;
}
float scalingY = 0.0f; //The scaling which give us the information how many pixel represent one meter
/**
* Getter for the scalingY value
* @author Silvio
* @return The scaling for the y-direction
*/
public float getScalingY()
{
return scalingY;
}
/**
* Setter for the scalingY value
* @author Silvio
* @param scaling The scaling value to set
*/
public void setScalingY(float scaling)
{
this.scalingY = scaling;
}
float offsetX = 0.0f; //The first offset value for the x-direction
/**
* Getter for the first x-coordinate offset of the map
* @author Silvio
* @return The first x-direction offset value of the map
*/
public float getOffsetX()
{
return offsetX;
}
/**
* Setter for the first offset coordinate
* @author Silvio
* @param offsetX The offset value to set
*/
public void setOffsetX(float offsetX)
{
this.offsetX = offsetX;
}
float offset2X = 0.0f; //The second offset value for the x-direction
/**
* Getter for the second x-coordinate offset of the map
* @author Silvio
* @return The second x-direction offset value of the map
*/
public float getOffset2X()
{
return offset2X;
}
/**
* Setter for the second offset coordinate
* @author Silvio
* @param offsetX The offset value to set
*/
public void setOffset2X(float offsetX)
{
this.offset2X = offsetX;
}
float offsetY = 0.0f; //The first offset value for the y-coordinate
/**
* Getter for the first offset y-coordinate
* @author Silvio
* @return The first offset value for the y-coordinate
*/
public float getOffsetY()
{
return offsetY;
}
/**
* Setter for the first offset coordinate
* @author Silvio
* @param offsetY The offset value to set
*/
public void setOffsetY(float offsetY)
{
this.offsetY = offsetY;
}
float offset2Y = 0.0f; //The second offset value for the y-coordinate
/**
* Getter for the second offset y-coordinate
* @author Silvio
* @return The second offset value for the y-coordinate
*/
public float getOffset2Y()
{
return offset2Y;
}
/**
* Setter for the second offset coordinate
* @author Silvio
* @param offsetY The offset value to set
*/
public void setOffset2Y(float offsetY)
{
this.offset2Y = offsetY;
}
private Date updateTime = new Date();
public Date getUpdateTime()
{
return updateTime;
}
public void setUpdateTime(Date updateTime)
{
this.updateTime = updateTime;
}
private String id = "";
public String getId()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
}