-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurfaceWaterTSMonth.java
253 lines (199 loc) · 5.07 KB
/
SurfaceWaterTSMonth.java
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
// SurfaceWaterTSDay - data object for daily surface water time series records
/* NoticeStart
CDSS HydroBase REST Web Services Java Library
CDSS HydroBase REST Web Services Java Library is a part of Colorado's Decision Support Systems (CDSS)
Copyright (C) 2018-2022 Colorado Department of Natural Resources
CDSS HydroBase REST Web Services Java Library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CDSS HydroBase REST Web Services Java Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CDSS HydroBase REST Web Services Java Library. If not, see <https://www.gnu.org/licenses/>.
NoticeEnd */
package cdss.dmi.hydrobase.rest.dao;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import RTi.Util.Time.DateTime;
/**
* This class stores data for surface water station daily time series data, for example see below.
* Note that multiple statistics are included for the 'measType' and need to be handled in time series identifier.
* <pre>
{
"stationNum": 476,
"abbrev": "PLAKERCO",
"usgsSiteId": "06754000",
"measType": "Streamflow",
"calYear": 1901,
"calMonNum": 5,
"minQCfs": 62.00,
"maxQCfs": 5860.00,
"avgQCfs": 1394.10,
"totalQAf": 85720.92,
"measCount": 31,
"dataSource": "USGS",
"modified": "2015-06-17"
},
* </pre>
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SurfaceWaterTSMonth {
// Data members are defined in alphabetical order.
/**
* Abbreviation, matches real-time station.
*/
private String abbrev;
/**
* Data value.
*/
private double avgQCfs;
/**
* Calendar month number.
*/
private int calMonNum;
/**
* Calendar year number.
*/
private int calYear;
/**
* Primary source/provider of station data (e.g., "USGS", "DWR").
*/
private String dataSource;
/**
* Data value.
*/
private double maxQCfs;
/**
* Count of daily measurements to calculate monthly statistic value.
*/
private int measCount;
/**
* Measurement type.
*/
private String measType;
/**
* Data value.
*/
private double minQCfs;
/**
* Modification time.
*/
private DateTime modified;
/**
* Station number.
*/
private int stationNum;
/**
* Data value.
*/
private double totalQAf;
/**
* USGS site ID.
*/
private String usgsSiteId;
// Getters for data members.
public String getAbbrev() {
return abbrev;
}
public double getAvgQCfs(){
return avgQCfs;
}
public int getCalMonNum() {
return calMonNum;
}
public int getCalyear() {
return calYear;
}
public String getDataSource() {
return dataSource;
}
public double getMaxQCfs() {
return maxQCfs;
}
public int getMeasCount() {
return measCount;
}
public String getMeasType() {
return measType;
}
public double getMinQCfs(){
return minQCfs;
}
public DateTime getModified() {
return modified;
}
public int getStationNum() {
return stationNum;
}
public double getTotalQAf(){
return totalQAf;
}
public String getUsgsSiteId() {
return usgsSiteId;
}
// Setters for data members.
public void setAbbrev(String abbrev) {
this.abbrev = abbrev;
}
public void setAvgQCfs(double avgQCfs) {
this.avgQCfs = avgQCfs;
}
public void setCalMonNum(int calMonNum) {
this.calMonNum = calMonNum;
}
public void setCalYear(int calYear) {
this.calYear = calYear;
}
public void setDataSource(String dataSource) {
this.dataSource = dataSource;
}
public void setMaxQCfs(double maxQCfs) {
this.maxQCfs = maxQCfs;
}
public void setMeasCount(int measCount){
this.measCount = measCount;
}
public void setMeasType(String measType) {
this.measType = measType;
}
public void setMinQCfs(double minQCfs) {
this.minQCfs = minQCfs;
}
public void setModified(DateTime modified) {
this.modified = modified;
}
public void setStationNum(int stationNum) {
this.stationNum = stationNum;
}
public void setTotalQAf(double totalQAf) {
this.totalQAf = totalQAf;
}
public void setUsgsSiteId(String usgsSiteId) {
this.usgsSiteId = usgsSiteId;
}
/**
* To string method for testing purposes:
* Variables defined in order of how they are returned in a json format from
* web services
*/
@Override
public String toString(){
return "SurfaceWaterTSDay: [ "
+ "abbrev: " + abbrev
+ ", avgQcfs: " + avgQCfs
+ ", calMonNum: " + calMonNum
+ ", calYear: " + calYear
+ ", dataSource: " + dataSource
+ ", maxQCfs: " + maxQCfs
+ ", measCount: " + measCount
+ ", minQCfs: " + minQCfs
+ ", measType: " + measType
+ ", modified: " + modified
+ ", stationNum: " + stationNum
+ ", totalQAf: " + totalQAf
+ ", usgsSiteId: " + usgsSiteId
+ " ]\n";
}
}