Commit 49c4255b28b247bb2b69f0ae85c9fd45d430e9be
1 parent
45fb4583
Exists in
master
Add equals and hashcode() methods to Granule.
Showing
1 changed file
with
740 additions
and
667 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/granule/Granule.java
@@ -17,137 +17,110 @@ | @@ -17,137 +17,110 @@ | ||
17 | package eu.omp.irap.vespa.epntapclient.granule; | 17 | package eu.omp.irap.vespa.epntapclient.granule; |
18 | 18 | ||
19 | import java.util.Date; | 19 | import java.util.Date; |
20 | +import java.util.HashMap; | ||
21 | +import java.util.Map; | ||
20 | 22 | ||
21 | /** | 23 | /** |
22 | * @author N. Jourdane | 24 | * @author N. Jourdane |
23 | */ | 25 | */ |
24 | public class Granule { | 26 | public class Granule { |
25 | 27 | ||
26 | - /** Internal table row index. Unique ID in data service, also in v2. Can be alphanum. */ | ||
27 | - private String granuleUid; | ||
28 | - | ||
29 | - /** | ||
30 | - * Common to granules of same type (e.g. same map projection, or geometry data products). Can be | ||
31 | - * alphanum. | ||
32 | - */ | ||
33 | - private String granuleGid; | ||
34 | - | ||
35 | - /** | ||
36 | - * Associates granules derived from the same data (e.g. various representations / processing | ||
37 | - * levels). Can be alphanum., may be the ID of original observation. | ||
38 | - */ | ||
39 | - private String obsId; | ||
40 | - | ||
41 | - /** Organization of the data product, from enumerated list. */ | ||
42 | - private String dataproductType; | ||
43 | - | ||
44 | - /** Standard IAU name of target (from a list related to target class), case sensitive. */ | ||
45 | - private String targetName; | ||
46 | - | ||
47 | - /** Type of target, from enumerated list. */ | ||
48 | - private String targetClass; | ||
49 | - | ||
50 | - /** | ||
51 | - * Acquisition start time (in JD). UTC measured at time_origin location (default is observer's | ||
52 | - * frame) | ||
53 | - */ | ||
54 | - private Double timeMin; | ||
55 | - | ||
56 | - /** | ||
57 | - * Acquisition stop time (in JD). UTC measured at time_origin location (default is observer's | ||
58 | - * frame). | ||
59 | - */ | ||
60 | - private Double timeMax; | ||
61 | - | ||
62 | - /** Min time sampling step. */ | ||
63 | - private Double timeSamplingStepMin; | ||
64 | - | ||
65 | - /** Max time sampling step. */ | ||
66 | - private Double timeSamplingStepMax; | ||
67 | - | ||
68 | - /** Min integration time. */ | ||
69 | - private Double timeExpMin; | ||
70 | - | ||
71 | - /** Max integration time. */ | ||
72 | - private Double timeExpMax; | 28 | + /** Estimate file size in kbyte (with this spelling) */ |
29 | + private int accessEstsize; | ||
73 | 30 | ||
74 | - /** Min spectral range (frequency). */ | ||
75 | - private Double spectralRangeMin; | 31 | + /** */ |
32 | + private String accessFormat; | ||
76 | 33 | ||
77 | - /** Max spectral range (frequency). */ | ||
78 | - private Double spectralRangeMax; | 34 | + /** MD5 Hash for the file when available (real file) */ |
35 | + private String accessMd5; | ||
79 | 36 | ||
80 | - /** Min spectral sampling step. */ | ||
81 | - private Double spectralSamplingStepMin; | 37 | + /** */ |
38 | + private String accessUrl; | ||
82 | 39 | ||
83 | - /** Max spectral sampling step. */ | ||
84 | - private Double spectralSamplingStepMax; | 40 | + /** Provides alternative target name if more common (e.g. comets) */ |
41 | + private String altTargetName; | ||
85 | 42 | ||
86 | - /** Min spectral resolution. */ | ||
87 | - private Double spectralResolutionMin; | 43 | + /** Bibcode, doi, or other biblio id, URL */ |
44 | + private String bibReference; | ||
88 | 45 | ||
89 | - /** Max spectral resolution. */ | ||
90 | - private Double spectralResolutionMax; | 46 | + /** Max of first coordinate. */ |
47 | + private Double c1Max; | ||
91 | 48 | ||
92 | /** Min of first coordinate. */ | 49 | /** Min of first coordinate. */ |
93 | private Double c1Min; | 50 | private Double c1Min; |
94 | 51 | ||
95 | - /** Max of first coordinate. */ | ||
96 | - private Double c1Max; | 52 | + /** Max resolution in first coordinate. */ |
53 | + private Double c1ResolMax; | ||
97 | 54 | ||
98 | - /** Min of second coordinate. */ | ||
99 | - private Double c2Min; | 55 | + /** Min resolution in first coordinate. */ |
56 | + private Double c1ResolMin; | ||
100 | 57 | ||
101 | /** Max of second coordinate. */ | 58 | /** Max of second coordinate. */ |
102 | private Double c2Max; | 59 | private Double c2Max; |
103 | 60 | ||
104 | - /** Min of third coordinate. */ | ||
105 | - private Double c3Min; | ||
106 | - | ||
107 | - /** Max of third coordinate. */ | ||
108 | - private Double c3Max; | ||
109 | - | ||
110 | - /** ObsCore-like footprint, assume spatial_coordinate_description. */ | ||
111 | - private String sRegion; | ||
112 | - | ||
113 | - /** Min resolution in first coordinate. */ | ||
114 | - private Double c1ResolMin; | 61 | + /** Min of second coordinate. */ |
62 | + private Double c2Min; | ||
115 | 63 | ||
116 | - /** Max resolution in first coordinate. */ | ||
117 | - private Double c1ResolMax; | 64 | + /** Max resolution in second coordinate. */ |
65 | + private Double c2ResolMax; | ||
118 | 66 | ||
119 | /** Min resolution in second coordinate. */ | 67 | /** Min resolution in second coordinate. */ |
120 | private Double c2ResolMin; | 68 | private Double c2ResolMin; |
121 | 69 | ||
122 | - /** Max resolution in second coordinate. */ | ||
123 | - private Double c2ResolMax; | 70 | + /** Max of third coordinate. */ |
71 | + private Double c3Max; | ||
124 | 72 | ||
125 | - /** Min resolution in third coordinate. */ | ||
126 | - private Double c3ResolMin; | 73 | + /** Min of third coordinate. */ |
74 | + private Double c3Min; | ||
127 | 75 | ||
128 | /** Max resolution in third coordinate. */ | 76 | /** Max resolution in third coordinate. */ |
129 | private Double c3ResolMax; | 77 | private Double c3ResolMax; |
130 | 78 | ||
131 | - /** Flavor of coordinate system, defines the nature of coordinates. From enumerated list. */ | ||
132 | - private String spatialFrameType; | 79 | + /** Min resolution in third coordinate. */ |
80 | + private Double c3ResolMin; | ||
133 | 81 | ||
134 | - /** Min incidence angle (solar zenithal angle). */ | ||
135 | - private Double incidenceMin; | 82 | + /** Date of first entry of this granule */ |
83 | + private Date creationDate; | ||
136 | 84 | ||
137 | - /** Max incidence angle (solar zenithal angle). */ | ||
138 | - private Double incidenceMax; | 85 | + /** |
86 | + * If access_format indicates a detached label, this parameter is mandatory and points to the | ||
87 | + * corresponding data file - both will be handled by the client before samping it to tools or | ||
88 | + * downloading | ||
89 | + */ | ||
90 | + private String dataAccessUrl; | ||
139 | 91 | ||
140 | - /** Min emergence angle. */ | ||
141 | - private Double emergenceMin; | 92 | + /** Organization of the data product, from enumerated list. */ |
93 | + private String dataproductType; | ||
94 | + | ||
95 | + /** Declination */ | ||
96 | + private double dec; | ||
142 | 97 | ||
143 | /** Max emergence angle. */ | 98 | /** Max emergence angle. */ |
144 | private Double emergenceMax; | 99 | private Double emergenceMax; |
145 | 100 | ||
146 | - /** Min phase angle. */ | ||
147 | - private Double phaseMin; | 101 | + /** Min emergence angle. */ |
102 | + private Double emergenceMin; | ||
148 | 103 | ||
149 | - /** Max phase angle. */ | ||
150 | - private Double phaseMax; | 104 | + /** */ |
105 | + private String featureName; | ||
106 | + | ||
107 | + /** Name of the data file only, case sensitive */ | ||
108 | + private String fileName; | ||
109 | + | ||
110 | + /** | ||
111 | + * Common to granules of same type (e.g. same map projection, or geometry data products). Can be | ||
112 | + * alphanum. | ||
113 | + */ | ||
114 | + private String granuleGid; | ||
115 | + | ||
116 | + /** Internal table row index. Unique ID in data service, also in v2. Can be alphanum. */ | ||
117 | + private String granuleUid; | ||
118 | + | ||
119 | + /** Max incidence angle (solar zenithal angle). */ | ||
120 | + private Double incidenceMax; | ||
121 | + | ||
122 | + /** Min incidence angle (solar zenithal angle). */ | ||
123 | + private Double incidenceMin; | ||
151 | 124 | ||
152 | /** Standard name of the observatory or spacecraft. */ | 125 | /** Standard name of the observatory or spacecraft. */ |
153 | private String instrumentHostName; | 126 | private String instrumentHostName; |
@@ -155,127 +128,156 @@ public class Granule { | @@ -155,127 +128,156 @@ public class Granule { | ||
155 | /** Standard name of instrument */ | 128 | /** Standard name of instrument */ |
156 | private String instrumentName; | 129 | private String instrumentName; |
157 | 130 | ||
158 | - /** UCD(s) defining the data */ | ||
159 | - private String measurementType; | 131 | + /** Local time at observed region */ |
132 | + private double localTimeMax; | ||
160 | 133 | ||
161 | - /** CODMAC calibration level in v1 */ | ||
162 | - private Integer processingLevel; | 134 | + /** Local time at observed region */ |
135 | + private double localTimeMin; | ||
163 | 136 | ||
164 | - /** Date of first entry of this granule */ | ||
165 | - private Date creationDate; | 137 | + /** UCD(s) defining the data */ |
138 | + private String measurementType; | ||
166 | 139 | ||
167 | /** Date of last modification (used to handle mirroring) */ | 140 | /** Date of last modification (used to handle mirroring) */ |
168 | private Date modificationDate; | 141 | private Date modificationDate; |
169 | 142 | ||
143 | + /** | ||
144 | + * Associates granules derived from the same data (e.g. various representations / processing | ||
145 | + * levels). Can be alphanum., may be the ID of original observation. | ||
146 | + */ | ||
147 | + private String obsId; | ||
148 | + | ||
170 | /** */ | 149 | /** */ |
171 | - private Date releaseDate; | 150 | + private double particleSpectralRangeMax; |
172 | 151 | ||
173 | /** */ | 152 | /** */ |
174 | - private String serviceTitle; | 153 | + private double particleSpectralRangeMin; |
175 | 154 | ||
176 | /** */ | 155 | /** */ |
177 | - private String accessUrl; | 156 | + private double particleSpectralResolutionMax; |
178 | 157 | ||
179 | /** */ | 158 | /** */ |
180 | - private String accessFormat; | 159 | + private double particleSpectralResolutionMin; |
181 | 160 | ||
182 | - /** Estimate file size in kbyte (with this spelling) */ | ||
183 | - private int accessEstsize; | 161 | + /** */ |
162 | + private double particleSpectralSamplingStepMax; | ||
184 | 163 | ||
185 | - /** | ||
186 | - * If access_format indicates a detached label, this parameter is mandatory and points to the | ||
187 | - * corresponding data file - both will be handled by the client before samping it to tools or | ||
188 | - * downloading | ||
189 | - */ | ||
190 | - private String dataAccessUrl; | 164 | + /** */ |
165 | + private double particleSpectralSamplingStepMin; | ||
191 | 166 | ||
192 | - /** MD5 Hash for the file when available (real file) */ | ||
193 | - private String accessMd5; | 167 | + /** */ |
168 | + private String particleSpectralType; | ||
194 | 169 | ||
195 | - /** URL of a thumbnail image with predefined size (png ~200 pix, for use in a client only) */ | ||
196 | - private String thumbnailUrl; | 170 | + /** Max phase angle. */ |
171 | + private Double phaseMax; | ||
197 | 172 | ||
198 | - /** Name of the data file only, case sensitive */ | ||
199 | - private String fileName; | 173 | + /** Min phase angle. */ |
174 | + private Double phaseMin; | ||
200 | 175 | ||
201 | - /** Identifies a chemical species, case sensitive */ | ||
202 | - private String species; | 176 | + /** CODMAC calibration level in v1 */ |
177 | + private Integer processingLevel; | ||
203 | 178 | ||
204 | - /** Provides alternative target name if more common (e.g. comets) */ | ||
205 | - private String altTargetName; | 179 | + /** Resource publisher */ |
180 | + private String publisher; | ||
206 | 181 | ||
207 | /** */ | 182 | /** */ |
208 | - private String targetRegion; | 183 | + private double ra; |
209 | 184 | ||
210 | /** */ | 185 | /** */ |
211 | - private String featureName; | ||
212 | - | ||
213 | - /** Bibcode, doi, or other biblio id, URL */ | ||
214 | - private String bibReference; | 186 | + private Date releaseDate; |
215 | 187 | ||
216 | /** */ | 188 | /** */ |
217 | - private double ra; | 189 | + private String serviceTitle; |
218 | 190 | ||
219 | - /** Declination */ | ||
220 | - private double dec; | 191 | + /** Max Solar longitude Ls (location on orbit / season) */ |
192 | + private double solarLongitudeMax; | ||
221 | 193 | ||
222 | /** Min Solar longitude Ls (location on orbit / season) */ | 194 | /** Min Solar longitude Ls (location on orbit / season) */ |
223 | private double solarLongitudeMin; | 195 | private double solarLongitudeMin; |
224 | 196 | ||
225 | - /** Max Solar longitude Ls (location on orbit / season) */ | ||
226 | - private double solarLongitudeMax; | 197 | + /** ID of specific coordinate system and version */ |
198 | + private String spatialCoordinateDescription; | ||
227 | 199 | ||
228 | - /** Local time at observed region */ | ||
229 | - private double localTimeMin; | 200 | + /** Flavor of coordinate system, defines the nature of coordinates. From enumerated list. */ |
201 | + private String spatialFrameType; | ||
230 | 202 | ||
231 | - /** Local time at observed region */ | ||
232 | - private double localTimeMax; | 203 | + /** Defines the frame origin */ |
204 | + private String spatialOrigin; | ||
233 | 205 | ||
234 | - /** Observer-target distance */ | ||
235 | - private double targetDistanceMin; | 206 | + /** Identifies a chemical species, case sensitive */ |
207 | + private String species; | ||
236 | 208 | ||
237 | - /** Observer-target distance */ | ||
238 | - private double targetDistanceMax; | 209 | + /** Max spectral range (frequency). */ |
210 | + private Double spectralRangeMax; | ||
239 | 211 | ||
240 | - /** */ | ||
241 | - private double targetTimeMin; | 212 | + /** Min spectral range (frequency). */ |
213 | + private Double spectralRangeMin; | ||
242 | 214 | ||
243 | - /** */ | ||
244 | - private double targetTimeMax; | 215 | + /** Max spectral resolution. */ |
216 | + private Double spectralResolutionMax; | ||
217 | + | ||
218 | + /** Min spectral resolution. */ | ||
219 | + private Double spectralResolutionMin; | ||
220 | + | ||
221 | + /** Max spectral sampling step. */ | ||
222 | + private Double spectralSamplingStepMax; | ||
223 | + | ||
224 | + /** Min spectral sampling step. */ | ||
225 | + private Double spectralSamplingStepMin; | ||
226 | + | ||
227 | + /** ObsCore-like footprint, assume spatial_coordinate_description. */ | ||
228 | + private String sRegion; | ||
229 | + | ||
230 | + /** Type of target, from enumerated list. */ | ||
231 | + private String targetClass; | ||
245 | 232 | ||
246 | - /** */ | ||
247 | - private String particleSpectralType; | 233 | + /** Observer-target distance */ |
234 | + private double targetDistanceMax; | ||
248 | 235 | ||
249 | - /** */ | ||
250 | - private double particleSpectralRangeMin; | 236 | + /** Observer-target distance */ |
237 | + private double targetDistanceMin; | ||
251 | 238 | ||
252 | - /** */ | ||
253 | - private double particleSpectralRangeMax; | 239 | + /** Standard IAU name of target (from a list related to target class), case sensitive. */ |
240 | + private String targetName; | ||
254 | 241 | ||
255 | /** */ | 242 | /** */ |
256 | - private double particleSpectralSamplingStepMin; | 243 | + private String targetRegion; |
257 | 244 | ||
258 | /** */ | 245 | /** */ |
259 | - private double particleSpectralSamplingStepMax; | 246 | + private double targetTimeMax; |
260 | 247 | ||
261 | /** */ | 248 | /** */ |
262 | - private double particleSpectralResolutionMin; | 249 | + private double targetTimeMin; |
263 | 250 | ||
264 | - /** */ | ||
265 | - private double particleSpectralResolutionMax; | 251 | + /** URL of a thumbnail image with predefined size (png ~200 pix, for use in a client only) */ |
252 | + private String thumbnailUrl; | ||
266 | 253 | ||
267 | - /** Resource publisher */ | ||
268 | - private String publisher; | 254 | + /** Max integration time. */ |
255 | + private Double timeExpMax; | ||
269 | 256 | ||
270 | - /** ID of specific coordinate system and version */ | ||
271 | - private String spatialCoordinateDescription; | 257 | + /** Min integration time. */ |
258 | + private Double timeExpMin; | ||
272 | 259 | ||
273 | - /** Defines the frame origin */ | ||
274 | - private String spatialOrigin; | 260 | + /** |
261 | + * Acquisition stop time (in JD). UTC measured at time_origin location (default is observer's | ||
262 | + * frame). | ||
263 | + */ | ||
264 | + private Double timeMax; | ||
265 | + | ||
266 | + /** | ||
267 | + * Acquisition start time (in JD). UTC measured at time_origin location (default is observer's | ||
268 | + * frame) | ||
269 | + */ | ||
270 | + private Double timeMin; | ||
275 | 271 | ||
276 | /** */ | 272 | /** */ |
277 | private String timeOrigin; | 273 | private String timeOrigin; |
278 | 274 | ||
275 | + /** Max time sampling step. */ | ||
276 | + private Double timeSamplingStepMax; | ||
277 | + | ||
278 | + /** Min time sampling step. */ | ||
279 | + private Double timeSamplingStepMin; | ||
280 | + | ||
279 | /** */ | 281 | /** */ |
280 | private String timeScale; | 282 | private String timeScale; |
281 | 283 | ||
@@ -289,697 +291,802 @@ public class Granule { | @@ -289,697 +291,802 @@ public class Granule { | ||
289 | this.granuleUid = granuleUid; | 291 | this.granuleUid = granuleUid; |
290 | } | 292 | } |
291 | 293 | ||
294 | + public Map<String, Object> asMap() { | ||
295 | + Map<String, Object> map = new HashMap<>(); | ||
296 | + map.put(GranuleEnum.GRANULE_UID.toString(), granuleUid); | ||
297 | + map.put(GranuleEnum.GRANULE_GID.toString(), granuleGid); | ||
298 | + map.put(GranuleEnum.OBS_ID.toString(), obsId); | ||
299 | + map.put(GranuleEnum.DATAPRODUCT_TYPE.toString(), dataproductType); | ||
300 | + map.put(GranuleEnum.TARGET_NAME.toString(), targetName); | ||
301 | + map.put(GranuleEnum.TARGET_CLASS.toString(), targetClass); | ||
302 | + map.put(GranuleEnum.TIME_MIN.toString(), timeMin); | ||
303 | + map.put(GranuleEnum.TIME_MAX.toString(), timeMax); | ||
304 | + map.put(GranuleEnum.TIME_SAMPLING_STEP_MIN.toString(), timeSamplingStepMin); | ||
305 | + map.put(GranuleEnum.TIME_SAMPLING_STEP_MAX.toString(), timeSamplingStepMax); | ||
306 | + map.put(GranuleEnum.TIME_EXP_MIN.toString(), timeExpMin); | ||
307 | + map.put(GranuleEnum.TIME_EXP_MAX.toString(), timeExpMax); | ||
308 | + map.put(GranuleEnum.SPECTRAL_RANGE_MIN.toString(), spectralRangeMin); | ||
309 | + map.put(GranuleEnum.SPECTRAL_RANGE_MAX.toString(), spectralRangeMax); | ||
310 | + map.put(GranuleEnum.TIME_SAMPLING_STEP_MIN.toString(), timeSamplingStepMin); | ||
311 | + map.put(GranuleEnum.TIME_SAMPLING_STEP_MAX.toString(), timeSamplingStepMax); | ||
312 | + map.put(GranuleEnum.SPECTRAL_RESOLUTION_MIN.toString(), spectralResolutionMin); | ||
313 | + map.put(GranuleEnum.SPECTRAL_RESOLUTION_MAX.toString(), spectralResolutionMax); | ||
314 | + map.put(GranuleEnum.C1MIN.toString(), c1Min); | ||
315 | + map.put(GranuleEnum.C1MAX.toString(), c1Max); | ||
316 | + map.put(GranuleEnum.C2MIN.toString(), c2Min); | ||
317 | + map.put(GranuleEnum.C2MAX.toString(), c2Max); | ||
318 | + map.put(GranuleEnum.C3MIN.toString(), c3Min); | ||
319 | + map.put(GranuleEnum.C3MAX.toString(), c3Max); | ||
320 | + map.put(GranuleEnum.S_REGION.toString(), sRegion); | ||
321 | + map.put(GranuleEnum.C1_RESOL_MIN.toString(), c1ResolMin); | ||
322 | + map.put(GranuleEnum.C1_RESOL_MAX.toString(), c1ResolMax); | ||
323 | + map.put(GranuleEnum.C2_RESOL_MIN.toString(), c2ResolMin); | ||
324 | + map.put(GranuleEnum.C2_RESOL_MAX.toString(), c2ResolMax); | ||
325 | + map.put(GranuleEnum.C3_RESOL_MIN.toString(), c3ResolMin); | ||
326 | + map.put(GranuleEnum.C3_RESOL_MAX.toString(), c3ResolMax); | ||
327 | + map.put(GranuleEnum.SPATIAL_FRAME_TYPE.toString(), spatialFrameType); | ||
328 | + map.put(GranuleEnum.INCIDENCE_MIN.toString(), incidenceMin); | ||
329 | + map.put(GranuleEnum.INCIDENCE_MAX.toString(), incidenceMax); | ||
330 | + map.put(GranuleEnum.EMERGENCE_MIN.toString(), emergenceMin); | ||
331 | + map.put(GranuleEnum.EMERGENCE_MAX.toString(), emergenceMax); | ||
332 | + map.put(GranuleEnum.PHASE_MIN.toString(), phaseMin); | ||
333 | + map.put(GranuleEnum.PHASE_MAX.toString(), phaseMax); | ||
334 | + map.put(GranuleEnum.INSTRUMENT_HOST_NAME.toString(), instrumentHostName); | ||
335 | + map.put(GranuleEnum.INSTRUMENT_NAME.toString(), instrumentName); | ||
336 | + map.put(GranuleEnum.MEASUREMENT_TYPE.toString(), measurementType); | ||
337 | + map.put(GranuleEnum.PROCESSING_LEVEL.toString(), processingLevel); | ||
338 | + map.put(GranuleEnum.CREATION_DATE.toString(), creationDate); | ||
339 | + map.put(GranuleEnum.MODIFICATION_DATE.toString(), modificationDate); | ||
340 | + map.put(GranuleEnum.RELEASE_DATE.toString(), releaseDate); | ||
341 | + map.put(GranuleEnum.SERVICE_TITLE.toString(), serviceTitle); | ||
342 | + return map; | ||
343 | + } | ||
344 | + | ||
345 | + @Override | ||
346 | + public boolean equals(Object that) { | ||
347 | + if (this == that) { | ||
348 | + return true; | ||
349 | + } | ||
350 | + | ||
351 | + if (!(that instanceof Granule)) { | ||
352 | + return false; | ||
353 | + } | ||
354 | + | ||
355 | + Granule thatGranule = (Granule) that; | ||
356 | + for (Map.Entry<String, Object> parameter : asMap().entrySet()) { | ||
357 | + Object val1 = parameter.getValue(); | ||
358 | + Object val2 = thatGranule.asMap().get(parameter.getKey()); | ||
359 | + if (!val1.equals(val2)) { | ||
360 | + return false; | ||
361 | + } | ||
362 | + } | ||
363 | + return true; | ||
364 | + } | ||
365 | + | ||
292 | /** | 366 | /** |
293 | - * @return the granuleUid | 367 | + * @return the accessEstsize |
294 | */ | 368 | */ |
295 | - public String getGranuleUid() { | ||
296 | - return granuleUid; | 369 | + public int getAccessEstsize() { |
370 | + return accessEstsize; | ||
297 | } | 371 | } |
298 | 372 | ||
299 | /** | 373 | /** |
300 | - * @param granuleUid the granuleUid to set | 374 | + * @return the accessFormat |
301 | */ | 375 | */ |
302 | - public void setGranuleUid(String granuleUid) { | ||
303 | - this.granuleUid = granuleUid; | 376 | + public String getAccessFormat() { |
377 | + return accessFormat; | ||
304 | } | 378 | } |
305 | 379 | ||
306 | /** | 380 | /** |
307 | - * @return the granuleGid | 381 | + * @return the accessMd5 |
308 | */ | 382 | */ |
309 | - public String getGranuleGid() { | ||
310 | - return granuleGid; | 383 | + public String getAccessMd5() { |
384 | + return accessMd5; | ||
311 | } | 385 | } |
312 | 386 | ||
313 | /** | 387 | /** |
314 | - * @param granuleGid the granuleGid to set | 388 | + * @return the accessUrl |
315 | */ | 389 | */ |
316 | - public void setGranuleGid(String granuleGid) { | ||
317 | - this.granuleGid = granuleGid; | 390 | + public String getAccessUrl() { |
391 | + return accessUrl; | ||
318 | } | 392 | } |
319 | 393 | ||
320 | /** | 394 | /** |
321 | - * @return the obsId | 395 | + * @return the altTargetName |
322 | */ | 396 | */ |
323 | - public String getObsId() { | ||
324 | - return obsId; | 397 | + public String getAltTargetName() { |
398 | + return altTargetName; | ||
325 | } | 399 | } |
326 | 400 | ||
327 | /** | 401 | /** |
328 | - * @param obsId the obsId to set | 402 | + * @return the bibReference |
329 | */ | 403 | */ |
330 | - public void setObsId(String obsId) { | ||
331 | - this.obsId = obsId; | 404 | + public String getBibReference() { |
405 | + return bibReference; | ||
332 | } | 406 | } |
333 | 407 | ||
334 | /** | 408 | /** |
335 | - * @return the dataproductType | 409 | + * @return the c1Max |
336 | */ | 410 | */ |
337 | - public String getDataproductType() { | ||
338 | - return dataproductType; | 411 | + public Double getC1Max() { |
412 | + return c1Max; | ||
339 | } | 413 | } |
340 | 414 | ||
341 | /** | 415 | /** |
342 | - * @param dataproductType the dataproductType to set | 416 | + * @return the c1Min |
343 | */ | 417 | */ |
344 | - public void setDataproductType(String dataproductType) { | ||
345 | - this.dataproductType = dataproductType; | 418 | + public Double getC1Min() { |
419 | + return c1Min; | ||
346 | } | 420 | } |
347 | 421 | ||
348 | /** | 422 | /** |
349 | - * @return the targetName | 423 | + * @return the c1ResolMax |
350 | */ | 424 | */ |
351 | - public String getTargetName() { | ||
352 | - return targetName; | 425 | + public Double getC1ResolMax() { |
426 | + return c1ResolMax; | ||
353 | } | 427 | } |
354 | 428 | ||
355 | /** | 429 | /** |
356 | - * @param targetName the targetName to set | 430 | + * @return the c1ResolMin |
357 | */ | 431 | */ |
358 | - public void setTargetName(String targetName) { | ||
359 | - this.targetName = targetName; | 432 | + public Double getC1ResolMin() { |
433 | + return c1ResolMin; | ||
360 | } | 434 | } |
361 | 435 | ||
362 | /** | 436 | /** |
363 | - * @return the targetClass | 437 | + * @return the c2Max |
364 | */ | 438 | */ |
365 | - public String getTargetClass() { | ||
366 | - return targetClass; | 439 | + public Double getC2Max() { |
440 | + return c2Max; | ||
367 | } | 441 | } |
368 | 442 | ||
369 | /** | 443 | /** |
370 | - * @param targetClass the targetClass to set | 444 | + * @return the c2Min |
371 | */ | 445 | */ |
372 | - public void setTargetClass(String targetClass) { | ||
373 | - this.targetClass = targetClass; | 446 | + public Double getC2Min() { |
447 | + return c2Min; | ||
374 | } | 448 | } |
375 | 449 | ||
376 | /** | 450 | /** |
377 | - * @return the timeMin | 451 | + * @return the c2ResolMax |
378 | */ | 452 | */ |
379 | - public Double getTimeMin() { | ||
380 | - return timeMin; | 453 | + public Double getC2ResolMax() { |
454 | + return c2ResolMax; | ||
381 | } | 455 | } |
382 | 456 | ||
383 | /** | 457 | /** |
384 | - * @param timeMin the timeMin to set | 458 | + * @return the c2ResolMin |
385 | */ | 459 | */ |
386 | - public void setTimeMin(Double timeMin) { | ||
387 | - this.timeMin = timeMin; | 460 | + public Double getC2ResolMin() { |
461 | + return c2ResolMin; | ||
388 | } | 462 | } |
389 | 463 | ||
390 | /** | 464 | /** |
391 | - * @return the timeMax | 465 | + * @return the c3Max |
392 | */ | 466 | */ |
393 | - public Double getTimeMax() { | ||
394 | - return timeMax; | 467 | + public Double getC3Max() { |
468 | + return c3Max; | ||
395 | } | 469 | } |
396 | 470 | ||
397 | /** | 471 | /** |
398 | - * @param timeMax the timeMax to set | 472 | + * @return the c3Min |
399 | */ | 473 | */ |
400 | - public void setTimeMax(Double timeMax) { | ||
401 | - this.timeMax = timeMax; | 474 | + public Double getC3Min() { |
475 | + return c3Min; | ||
402 | } | 476 | } |
403 | 477 | ||
404 | /** | 478 | /** |
405 | - * @return the timeSamplingStepMin | 479 | + * @return the c3ResolMax |
406 | */ | 480 | */ |
407 | - public Double getTimeSamplingStepMin() { | ||
408 | - return timeSamplingStepMin; | 481 | + public Double getC3ResolMax() { |
482 | + return c3ResolMax; | ||
409 | } | 483 | } |
410 | 484 | ||
411 | /** | 485 | /** |
412 | - * @param timeSamplingStepMin the timeSamplingStepMin to set | 486 | + * @return the c3ResolMin |
413 | */ | 487 | */ |
414 | - public void setTimeSamplingStepMin(Double timeSamplingStepMin) { | ||
415 | - this.timeSamplingStepMin = timeSamplingStepMin; | 488 | + public Double getC3ResolMin() { |
489 | + return c3ResolMin; | ||
416 | } | 490 | } |
417 | 491 | ||
418 | /** | 492 | /** |
419 | - * @return the timeSamplingStepMax | 493 | + * @return the creationDate |
420 | */ | 494 | */ |
421 | - public Double getTimeSamplingStepMax() { | ||
422 | - return timeSamplingStepMax; | 495 | + public Date getCreationDate() { |
496 | + return creationDate; | ||
423 | } | 497 | } |
424 | 498 | ||
425 | /** | 499 | /** |
426 | - * @param timeSamplingStepMax the timeSamplingStepMax to set | 500 | + * @return the dataAccessUrl |
427 | */ | 501 | */ |
428 | - public void setTimeSamplingStepMax(Double timeSamplingStepMax) { | ||
429 | - this.timeSamplingStepMax = timeSamplingStepMax; | 502 | + public String getDataAccessUrl() { |
503 | + return dataAccessUrl; | ||
430 | } | 504 | } |
431 | 505 | ||
432 | /** | 506 | /** |
433 | - * @return the timeExpMin | 507 | + * @return the dataproductType |
434 | */ | 508 | */ |
435 | - public Double getTimeExpMin() { | ||
436 | - return timeExpMin; | 509 | + public String getDataproductType() { |
510 | + return dataproductType; | ||
437 | } | 511 | } |
438 | 512 | ||
439 | /** | 513 | /** |
440 | - * @param timeExpMin the timeExpMin to set | 514 | + * @return the dec |
441 | */ | 515 | */ |
442 | - public void setTimeExpMin(Double timeExpMin) { | ||
443 | - this.timeExpMin = timeExpMin; | 516 | + public double getDec() { |
517 | + return dec; | ||
444 | } | 518 | } |
445 | 519 | ||
446 | /** | 520 | /** |
447 | - * @return the timeExpMax | 521 | + * @return the emergenceMax |
448 | */ | 522 | */ |
449 | - public Double getTimeExpMax() { | ||
450 | - return timeExpMax; | 523 | + public Double getEmergenceMax() { |
524 | + return emergenceMax; | ||
451 | } | 525 | } |
452 | 526 | ||
453 | /** | 527 | /** |
454 | - * @param timeExpMax the timeExpMax to set | 528 | + * @return the emergenceMin |
455 | */ | 529 | */ |
456 | - public void setTimeExpMax(Double timeExpMax) { | ||
457 | - this.timeExpMax = timeExpMax; | 530 | + public Double getEmergenceMin() { |
531 | + return emergenceMin; | ||
458 | } | 532 | } |
459 | 533 | ||
460 | /** | 534 | /** |
461 | - * @return the spectralRangeMin | 535 | + * @return the featureName |
462 | */ | 536 | */ |
463 | - public Double getSpectralRangeMin() { | ||
464 | - return spectralRangeMin; | 537 | + public String getFeatureName() { |
538 | + return featureName; | ||
465 | } | 539 | } |
466 | 540 | ||
467 | /** | 541 | /** |
468 | - * @param spectralRangeMin the spectralRangeMin to set | 542 | + * @return the fileName |
469 | */ | 543 | */ |
470 | - public void setSpectralRangeMin(Double spectralRangeMin) { | ||
471 | - this.spectralRangeMin = spectralRangeMin; | 544 | + public String getFileName() { |
545 | + return fileName; | ||
472 | } | 546 | } |
473 | 547 | ||
474 | /** | 548 | /** |
475 | - * @return the spectralRangeMax | 549 | + * @return the granuleGid |
476 | */ | 550 | */ |
477 | - public Double getSpectralRangeMax() { | ||
478 | - return spectralRangeMax; | 551 | + public String getGranuleGid() { |
552 | + return granuleGid; | ||
479 | } | 553 | } |
480 | 554 | ||
481 | /** | 555 | /** |
482 | - * @param spectralRangeMax the spectralRangeMax to set | 556 | + * @return the granuleUid |
483 | */ | 557 | */ |
484 | - public void setSpectralRangeMax(Double spectralRangeMax) { | ||
485 | - this.spectralRangeMax = spectralRangeMax; | 558 | + public String getGranuleUid() { |
559 | + return granuleUid; | ||
486 | } | 560 | } |
487 | 561 | ||
488 | /** | 562 | /** |
489 | - * @return the spectralSamplingStepMin | 563 | + * @return the incidenceMax |
490 | */ | 564 | */ |
491 | - public Double getSpectralSamplingStepMin() { | ||
492 | - return spectralSamplingStepMin; | 565 | + public Double getIncidenceMax() { |
566 | + return incidenceMax; | ||
493 | } | 567 | } |
494 | 568 | ||
495 | /** | 569 | /** |
496 | - * @param spectralSamplingStepMin the spectralSamplingStepMin to set | 570 | + * @return the incidenceMin |
497 | */ | 571 | */ |
498 | - public void setSpectralSamplingStepMin(Double spectralSamplingStepMin) { | ||
499 | - this.spectralSamplingStepMin = spectralSamplingStepMin; | 572 | + public Double getIncidenceMin() { |
573 | + return incidenceMin; | ||
500 | } | 574 | } |
501 | 575 | ||
502 | /** | 576 | /** |
503 | - * @return the spectralSamplingStepMax | 577 | + * @return the instrumentHostName |
504 | */ | 578 | */ |
505 | - public Double getSpectralSamplingStepMax() { | ||
506 | - return spectralSamplingStepMax; | 579 | + public String getInstrumentHostName() { |
580 | + return instrumentHostName; | ||
581 | + } | ||
582 | + | ||
583 | + /** | ||
584 | + * @return the instrumentName | ||
585 | + */ | ||
586 | + public String getInstrumentName() { | ||
587 | + return instrumentName; | ||
588 | + } | ||
589 | + | ||
590 | + /** | ||
591 | + * @return the localTimeMax | ||
592 | + */ | ||
593 | + public double getLocalTimeMax() { | ||
594 | + return localTimeMax; | ||
507 | } | 595 | } |
508 | 596 | ||
509 | /** | 597 | /** |
510 | - * @param spectralSamplingStepMax the spectralSamplingStepMax to set | 598 | + * @return the localTimeMin |
511 | */ | 599 | */ |
512 | - public void setSpectralSamplingStepMax(Double spectralSamplingStepMax) { | ||
513 | - this.spectralSamplingStepMax = spectralSamplingStepMax; | 600 | + public double getLocalTimeMin() { |
601 | + return localTimeMin; | ||
514 | } | 602 | } |
515 | 603 | ||
516 | /** | 604 | /** |
517 | - * @return the spectralResolutionMin | 605 | + * @return the measurementType |
518 | */ | 606 | */ |
519 | - public Double getSpectralResolutionMin() { | ||
520 | - return spectralResolutionMin; | 607 | + public String getMeasurementType() { |
608 | + return measurementType; | ||
521 | } | 609 | } |
522 | 610 | ||
523 | /** | 611 | /** |
524 | - * @param spectralResolutionMin the spectralResolutionMin to set | 612 | + * @return the modificationDate |
525 | */ | 613 | */ |
526 | - public void setSpectralResolutionMin(Double spectralResolutionMin) { | ||
527 | - this.spectralResolutionMin = spectralResolutionMin; | 614 | + public Date getModificationDate() { |
615 | + return modificationDate; | ||
528 | } | 616 | } |
529 | 617 | ||
530 | /** | 618 | /** |
531 | - * @return the spectralResolutionMax | 619 | + * @return the obsId |
532 | */ | 620 | */ |
533 | - public Double getSpectralResolutionMax() { | ||
534 | - return spectralResolutionMax; | 621 | + public String getObsId() { |
622 | + return obsId; | ||
535 | } | 623 | } |
536 | 624 | ||
537 | /** | 625 | /** |
538 | - * @param spectralResolutionMax the spectralResolutionMax to set | 626 | + * @return the particleSpectralRangeMax |
539 | */ | 627 | */ |
540 | - public void setSpectralResolutionMax(Double spectralResolutionMax) { | ||
541 | - this.spectralResolutionMax = spectralResolutionMax; | 628 | + public double getParticleSpectralRangeMax() { |
629 | + return particleSpectralRangeMax; | ||
542 | } | 630 | } |
543 | 631 | ||
544 | /** | 632 | /** |
545 | - * @return the c1Min | 633 | + * @return the particleSpectralRangeMin |
546 | */ | 634 | */ |
547 | - public Double getC1Min() { | ||
548 | - return c1Min; | 635 | + public double getParticleSpectralRangeMin() { |
636 | + return particleSpectralRangeMin; | ||
549 | } | 637 | } |
550 | 638 | ||
551 | /** | 639 | /** |
552 | - * @param c1Min the c1Min to set | 640 | + * @return the particleSpectralResolutionMax |
553 | */ | 641 | */ |
554 | - public void setC1Min(Double c1Min) { | ||
555 | - this.c1Min = c1Min; | 642 | + public double getParticleSpectralResolutionMax() { |
643 | + return particleSpectralResolutionMax; | ||
556 | } | 644 | } |
557 | 645 | ||
558 | /** | 646 | /** |
559 | - * @return the c1Max | 647 | + * @return the particleSpectralResolutionMin |
560 | */ | 648 | */ |
561 | - public Double getC1Max() { | ||
562 | - return c1Max; | 649 | + public double getParticleSpectralResolutionMin() { |
650 | + return particleSpectralResolutionMin; | ||
563 | } | 651 | } |
564 | 652 | ||
565 | /** | 653 | /** |
566 | - * @param c1Max the c1Max to set | 654 | + * @return the particleSpectralSamplingStepMax |
567 | */ | 655 | */ |
568 | - public void setC1Max(Double c1Max) { | ||
569 | - this.c1Max = c1Max; | 656 | + public double getParticleSpectralSamplingStepMax() { |
657 | + return particleSpectralSamplingStepMax; | ||
570 | } | 658 | } |
571 | 659 | ||
572 | /** | 660 | /** |
573 | - * @return the c2Min | 661 | + * @return the particleSpectralSamplingStepMin |
574 | */ | 662 | */ |
575 | - public Double getC2Min() { | ||
576 | - return c2Min; | 663 | + public double getParticleSpectralSamplingStepMin() { |
664 | + return particleSpectralSamplingStepMin; | ||
577 | } | 665 | } |
578 | 666 | ||
579 | /** | 667 | /** |
580 | - * @param c2Min the c2Min to set | 668 | + * @return the particleSpectralType |
581 | */ | 669 | */ |
582 | - public void setC2Min(Double c2Min) { | ||
583 | - this.c2Min = c2Min; | 670 | + public String getParticleSpectralType() { |
671 | + return particleSpectralType; | ||
584 | } | 672 | } |
585 | 673 | ||
586 | /** | 674 | /** |
587 | - * @return the c2Max | 675 | + * @return the phaseMax |
588 | */ | 676 | */ |
589 | - public Double getC2Max() { | ||
590 | - return c2Max; | 677 | + public Double getPhaseMax() { |
678 | + return phaseMax; | ||
591 | } | 679 | } |
592 | 680 | ||
593 | /** | 681 | /** |
594 | - * @param c2Max the c2Max to set | 682 | + * @return the phaseMin |
595 | */ | 683 | */ |
596 | - public void setC2Max(Double c2Max) { | ||
597 | - this.c2Max = c2Max; | 684 | + public Double getPhaseMin() { |
685 | + return phaseMin; | ||
598 | } | 686 | } |
599 | 687 | ||
600 | /** | 688 | /** |
601 | - * @return the c3Min | 689 | + * @return the processingLevel |
602 | */ | 690 | */ |
603 | - public Double getC3Min() { | ||
604 | - return c3Min; | 691 | + public Integer getProcessingLevel() { |
692 | + return processingLevel; | ||
605 | } | 693 | } |
606 | 694 | ||
607 | /** | 695 | /** |
608 | - * @param c3Min the c3Min to set | 696 | + * @return the publisher |
609 | */ | 697 | */ |
610 | - public void setC3Min(Double c3Min) { | ||
611 | - this.c3Min = c3Min; | 698 | + public String getPublisher() { |
699 | + return publisher; | ||
612 | } | 700 | } |
613 | 701 | ||
614 | /** | 702 | /** |
615 | - * @return the c3Max | 703 | + * @return the ra |
616 | */ | 704 | */ |
617 | - public Double getC3Max() { | ||
618 | - return c3Max; | 705 | + public double getRa() { |
706 | + return ra; | ||
619 | } | 707 | } |
620 | 708 | ||
621 | /** | 709 | /** |
622 | - * @param c3Max the c3Max to set | 710 | + * @return the releaseDate |
623 | */ | 711 | */ |
624 | - public void setC3Max(Double c3Max) { | ||
625 | - this.c3Max = c3Max; | 712 | + public Date getReleaseDate() { |
713 | + return releaseDate; | ||
626 | } | 714 | } |
627 | 715 | ||
628 | /** | 716 | /** |
629 | - * @return the sRegion | 717 | + * @return the serviceTitle |
630 | */ | 718 | */ |
631 | - public String getsRegion() { | ||
632 | - return sRegion; | 719 | + public String getServiceTitle() { |
720 | + return serviceTitle; | ||
633 | } | 721 | } |
634 | 722 | ||
635 | /** | 723 | /** |
636 | - * @param sRegion the sRegion to set | 724 | + * @return the solarLongitudeMax |
637 | */ | 725 | */ |
638 | - public void setsRegion(String sRegion) { | ||
639 | - this.sRegion = sRegion; | 726 | + public double getSolarLongitudeMax() { |
727 | + return solarLongitudeMax; | ||
640 | } | 728 | } |
641 | 729 | ||
642 | /** | 730 | /** |
643 | - * @return the c1ResolMin | 731 | + * @return the solarLongitudeMin |
644 | */ | 732 | */ |
645 | - public Double getC1ResolMin() { | ||
646 | - return c1ResolMin; | 733 | + public double getSolarLongitudeMin() { |
734 | + return solarLongitudeMin; | ||
647 | } | 735 | } |
648 | 736 | ||
649 | /** | 737 | /** |
650 | - * @param c1ResolMin the c1ResolMin to set | 738 | + * @return the spatialCoordinateDescription |
651 | */ | 739 | */ |
652 | - public void setC1ResolMin(Double c1ResolMin) { | ||
653 | - this.c1ResolMin = c1ResolMin; | 740 | + public String getSpatialCoordinateDescription() { |
741 | + return spatialCoordinateDescription; | ||
654 | } | 742 | } |
655 | 743 | ||
656 | /** | 744 | /** |
657 | - * @return the c1ResolMax | 745 | + * @return the spatialFrameType |
658 | */ | 746 | */ |
659 | - public Double getC1ResolMax() { | ||
660 | - return c1ResolMax; | 747 | + public String getSpatialFrameType() { |
748 | + return spatialFrameType; | ||
661 | } | 749 | } |
662 | 750 | ||
663 | /** | 751 | /** |
664 | - * @param c1ResolMax the c1ResolMax to set | 752 | + * @return the spatialOrigin |
665 | */ | 753 | */ |
666 | - public void setC1ResolMax(Double c1ResolMax) { | ||
667 | - this.c1ResolMax = c1ResolMax; | 754 | + public String getSpatialOrigin() { |
755 | + return spatialOrigin; | ||
668 | } | 756 | } |
669 | 757 | ||
670 | /** | 758 | /** |
671 | - * @return the c2ResolMin | 759 | + * @return the species |
672 | */ | 760 | */ |
673 | - public Double getC2ResolMin() { | ||
674 | - return c2ResolMin; | 761 | + public String getSpecies() { |
762 | + return species; | ||
675 | } | 763 | } |
676 | 764 | ||
677 | /** | 765 | /** |
678 | - * @param c2ResolMin the c2ResolMin to set | 766 | + * @return the spectralRangeMax |
679 | */ | 767 | */ |
680 | - public void setC2ResolMin(Double c2ResolMin) { | ||
681 | - this.c2ResolMin = c2ResolMin; | 768 | + public Double getSpectralRangeMax() { |
769 | + return spectralRangeMax; | ||
682 | } | 770 | } |
683 | 771 | ||
684 | /** | 772 | /** |
685 | - * @return the c2ResolMax | 773 | + * @return the spectralRangeMin |
686 | */ | 774 | */ |
687 | - public Double getC2ResolMax() { | ||
688 | - return c2ResolMax; | 775 | + public Double getSpectralRangeMin() { |
776 | + return spectralRangeMin; | ||
689 | } | 777 | } |
690 | 778 | ||
691 | /** | 779 | /** |
692 | - * @param c2ResolMax the c2ResolMax to set | 780 | + * @return the spectralResolutionMax |
693 | */ | 781 | */ |
694 | - public void setC2ResolMax(Double c2ResolMax) { | ||
695 | - this.c2ResolMax = c2ResolMax; | 782 | + public Double getSpectralResolutionMax() { |
783 | + return spectralResolutionMax; | ||
696 | } | 784 | } |
697 | 785 | ||
698 | /** | 786 | /** |
699 | - * @return the c3ResolMin | 787 | + * @return the spectralResolutionMin |
700 | */ | 788 | */ |
701 | - public Double getC3ResolMin() { | ||
702 | - return c3ResolMin; | 789 | + public Double getSpectralResolutionMin() { |
790 | + return spectralResolutionMin; | ||
703 | } | 791 | } |
704 | 792 | ||
705 | /** | 793 | /** |
706 | - * @param c3ResolMin the c3ResolMin to set | 794 | + * @return the spectralSamplingStepMax |
707 | */ | 795 | */ |
708 | - public void setC3ResolMin(Double c3ResolMin) { | ||
709 | - this.c3ResolMin = c3ResolMin; | 796 | + public Double getSpectralSamplingStepMax() { |
797 | + return spectralSamplingStepMax; | ||
710 | } | 798 | } |
711 | 799 | ||
712 | /** | 800 | /** |
713 | - * @return the c3ResolMax | 801 | + * @return the spectralSamplingStepMin |
714 | */ | 802 | */ |
715 | - public Double getC3ResolMax() { | ||
716 | - return c3ResolMax; | 803 | + public Double getSpectralSamplingStepMin() { |
804 | + return spectralSamplingStepMin; | ||
717 | } | 805 | } |
718 | 806 | ||
719 | /** | 807 | /** |
720 | - * @param c3ResolMax the c3ResolMax to set | 808 | + * @return the sRegion |
721 | */ | 809 | */ |
722 | - public void setC3ResolMax(Double c3ResolMax) { | ||
723 | - this.c3ResolMax = c3ResolMax; | 810 | + public String getsRegion() { |
811 | + return sRegion; | ||
724 | } | 812 | } |
725 | 813 | ||
726 | /** | 814 | /** |
727 | - * @return the spatialFrameType | 815 | + * @return the targetClass |
728 | */ | 816 | */ |
729 | - public String getSpatialFrameType() { | ||
730 | - return spatialFrameType; | 817 | + public String getTargetClass() { |
818 | + return targetClass; | ||
731 | } | 819 | } |
732 | 820 | ||
733 | /** | 821 | /** |
734 | - * @param spatialFrameType the spatialFrameType to set | 822 | + * @return the targetDistanceMax |
735 | */ | 823 | */ |
736 | - public void setSpatialFrameType(String spatialFrameType) { | ||
737 | - this.spatialFrameType = spatialFrameType; | 824 | + public double getTargetDistanceMax() { |
825 | + return targetDistanceMax; | ||
738 | } | 826 | } |
739 | 827 | ||
740 | /** | 828 | /** |
741 | - * @return the incidenceMin | 829 | + * @return the targetDistanceMin |
742 | */ | 830 | */ |
743 | - public Double getIncidenceMin() { | ||
744 | - return incidenceMin; | 831 | + public double getTargetDistanceMin() { |
832 | + return targetDistanceMin; | ||
745 | } | 833 | } |
746 | 834 | ||
747 | /** | 835 | /** |
748 | - * @param incidenceMin the incidenceMin to set | 836 | + * @return the targetName |
749 | */ | 837 | */ |
750 | - public void setIncidenceMin(Double incidenceMin) { | ||
751 | - this.incidenceMin = incidenceMin; | 838 | + public String getTargetName() { |
839 | + return targetName; | ||
752 | } | 840 | } |
753 | 841 | ||
754 | /** | 842 | /** |
755 | - * @return the incidenceMax | 843 | + * @return the targetRegion |
756 | */ | 844 | */ |
757 | - public Double getIncidenceMax() { | ||
758 | - return incidenceMax; | 845 | + public String getTargetRegion() { |
846 | + return targetRegion; | ||
759 | } | 847 | } |
760 | 848 | ||
761 | /** | 849 | /** |
762 | - * @param incidenceMax the incidenceMax to set | 850 | + * @return the targetTimeMax |
763 | */ | 851 | */ |
764 | - public void setIncidenceMax(Double incidenceMax) { | ||
765 | - this.incidenceMax = incidenceMax; | 852 | + public double getTargetTimeMax() { |
853 | + return targetTimeMax; | ||
766 | } | 854 | } |
767 | 855 | ||
768 | /** | 856 | /** |
769 | - * @return the emergenceMin | 857 | + * @return the targetTimeMin |
770 | */ | 858 | */ |
771 | - public Double getEmergenceMin() { | ||
772 | - return emergenceMin; | 859 | + public double getTargetTimeMin() { |
860 | + return targetTimeMin; | ||
773 | } | 861 | } |
774 | 862 | ||
775 | /** | 863 | /** |
776 | - * @param emergenceMin the emergenceMin to set | 864 | + * @return the thumbnailUrl |
777 | */ | 865 | */ |
778 | - public void setEmergenceMin(Double emergenceMin) { | ||
779 | - this.emergenceMin = emergenceMin; | 866 | + public String getThumbnailUrl() { |
867 | + return thumbnailUrl; | ||
780 | } | 868 | } |
781 | 869 | ||
782 | /** | 870 | /** |
783 | - * @return the emergenceMax | 871 | + * @return the timeExpMax |
784 | */ | 872 | */ |
785 | - public Double getEmergenceMax() { | ||
786 | - return emergenceMax; | 873 | + public Double getTimeExpMax() { |
874 | + return timeExpMax; | ||
787 | } | 875 | } |
788 | 876 | ||
789 | /** | 877 | /** |
790 | - * @param emergenceMax the emergenceMax to set | 878 | + * @return the timeExpMin |
791 | */ | 879 | */ |
792 | - public void setEmergenceMax(Double emergenceMax) { | ||
793 | - this.emergenceMax = emergenceMax; | 880 | + public Double getTimeExpMin() { |
881 | + return timeExpMin; | ||
794 | } | 882 | } |
795 | 883 | ||
796 | /** | 884 | /** |
797 | - * @return the phaseMin | 885 | + * @return the timeMax |
798 | */ | 886 | */ |
799 | - public Double getPhaseMin() { | ||
800 | - return phaseMin; | 887 | + public Double getTimeMax() { |
888 | + return timeMax; | ||
801 | } | 889 | } |
802 | 890 | ||
803 | /** | 891 | /** |
804 | - * @param phaseMin the phaseMin to set | 892 | + * @return the timeMin |
805 | */ | 893 | */ |
806 | - public void setPhaseMin(Double phaseMin) { | ||
807 | - this.phaseMin = phaseMin; | 894 | + public Double getTimeMin() { |
895 | + return timeMin; | ||
808 | } | 896 | } |
809 | 897 | ||
810 | /** | 898 | /** |
811 | - * @return the phaseMax | 899 | + * @return the timeOrigin |
812 | */ | 900 | */ |
813 | - public Double getPhaseMax() { | ||
814 | - return phaseMax; | 901 | + public String getTimeOrigin() { |
902 | + return timeOrigin; | ||
815 | } | 903 | } |
816 | 904 | ||
817 | /** | 905 | /** |
818 | - * @param phaseMax the phaseMax to set | 906 | + * @return the timeSamplingStepMax |
819 | */ | 907 | */ |
820 | - public void setPhaseMax(Double phaseMax) { | ||
821 | - this.phaseMax = phaseMax; | 908 | + public Double getTimeSamplingStepMax() { |
909 | + return timeSamplingStepMax; | ||
822 | } | 910 | } |
823 | 911 | ||
824 | /** | 912 | /** |
825 | - * @return the instrumentHostName | 913 | + * @return the timeSamplingStepMin |
826 | */ | 914 | */ |
827 | - public String getInstrumentHostName() { | ||
828 | - return instrumentHostName; | 915 | + public Double getTimeSamplingStepMin() { |
916 | + return timeSamplingStepMin; | ||
829 | } | 917 | } |
830 | 918 | ||
831 | /** | 919 | /** |
832 | - * @param instrumentHostName the instrumentHostName to set | 920 | + * @return the timeScale |
833 | */ | 921 | */ |
834 | - public void setInstrumentHostName(String instrumentHostName) { | ||
835 | - this.instrumentHostName = instrumentHostName; | 922 | + public String getTimeScale() { |
923 | + return timeScale; | ||
836 | } | 924 | } |
837 | 925 | ||
838 | - /** | ||
839 | - * @return the instrumentName | ||
840 | - */ | ||
841 | - public String getInstrumentName() { | ||
842 | - return instrumentName; | 926 | + @Override |
927 | + public int hashCode() { | ||
928 | + final int salt = 31; | ||
929 | + int hash = 1; | ||
930 | + for (Map.Entry<String, Object> parameter : asMap().entrySet()) { | ||
931 | + hash = salt * hash | ||
932 | + + (parameter.getValue() == null ? 0 : parameter.getValue().hashCode()); | ||
933 | + } | ||
934 | + return hash; | ||
843 | } | 935 | } |
844 | 936 | ||
845 | /** | 937 | /** |
846 | - * @param instrumentName the instrumentName to set | 938 | + * A granule is valid if all mandatory parameters are filled. |
939 | + * | ||
940 | + * @return true if the Granule is valid, false otherwise. | ||
847 | */ | 941 | */ |
848 | - public void setInstrumentName(String instrumentName) { | ||
849 | - this.instrumentName = instrumentName; | 942 | + public boolean isValid() { |
943 | + for (Map.Entry<String, Object> parameter : asMap().entrySet()) { | ||
944 | + if (parameter.getValue() == null) { | ||
945 | + return false; | ||
946 | + } | ||
947 | + } | ||
948 | + return true; | ||
949 | + } | ||
950 | + | ||
951 | + public String printAll() { | ||
952 | + String s = ""; | ||
953 | + for (Map.Entry<String, Object> parameter : asMap().entrySet()) { | ||
954 | + s += parameter.getKey() + ": " + parameter.getValue() + "\n"; | ||
955 | + } | ||
956 | + return s; | ||
850 | } | 957 | } |
851 | 958 | ||
852 | /** | 959 | /** |
853 | - * @return the measurementType | 960 | + * @param accessEstsize the accessEstsize to set |
854 | */ | 961 | */ |
855 | - public String getMeasurementType() { | ||
856 | - return measurementType; | 962 | + public void setAccessEstsize(int accessEstsize) { |
963 | + this.accessEstsize = accessEstsize; | ||
857 | } | 964 | } |
858 | 965 | ||
859 | /** | 966 | /** |
860 | - * @param measurementType the measurementType to set | 967 | + * @param accessFormat the accessFormat to set |
861 | */ | 968 | */ |
862 | - public void setMeasurementType(String measurementType) { | ||
863 | - this.measurementType = measurementType; | 969 | + public void setAccessFormat(String accessFormat) { |
970 | + this.accessFormat = accessFormat; | ||
864 | } | 971 | } |
865 | 972 | ||
866 | /** | 973 | /** |
867 | - * @return the processingLevel | 974 | + * @param accessMd5 the accessMd5 to set |
868 | */ | 975 | */ |
869 | - public Integer getProcessingLevel() { | ||
870 | - return processingLevel; | 976 | + public void setAccessMd5(String accessMd5) { |
977 | + this.accessMd5 = accessMd5; | ||
871 | } | 978 | } |
872 | 979 | ||
873 | /** | 980 | /** |
874 | - * @param processingLevel the processingLevel to set | 981 | + * @param accessUrl the accessUrl to set |
875 | */ | 982 | */ |
876 | - public void setProcessingLevel(Integer processingLevel) { | ||
877 | - this.processingLevel = processingLevel; | 983 | + public void setAccessUrl(String accessUrl) { |
984 | + this.accessUrl = accessUrl; | ||
878 | } | 985 | } |
879 | 986 | ||
880 | /** | 987 | /** |
881 | - * @return the creationDate | 988 | + * @param altTargetName the altTargetName to set |
882 | */ | 989 | */ |
883 | - public Date getCreationDate() { | ||
884 | - return creationDate; | 990 | + public void setAltTargetName(String altTargetName) { |
991 | + this.altTargetName = altTargetName; | ||
885 | } | 992 | } |
886 | 993 | ||
887 | /** | 994 | /** |
888 | - * @param creationDate the creationDate to set | 995 | + * @param bibReference the bibReference to set |
889 | */ | 996 | */ |
890 | - public void setCreationDate(Date creationDate) { | ||
891 | - this.creationDate = creationDate; | 997 | + public void setBibReference(String bibReference) { |
998 | + this.bibReference = bibReference; | ||
892 | } | 999 | } |
893 | 1000 | ||
894 | /** | 1001 | /** |
895 | - * @return the modificationDate | 1002 | + * @param c1Max the c1Max to set |
896 | */ | 1003 | */ |
897 | - public Date getModificationDate() { | ||
898 | - return modificationDate; | 1004 | + public void setC1Max(Double c1Max) { |
1005 | + this.c1Max = c1Max; | ||
899 | } | 1006 | } |
900 | 1007 | ||
901 | /** | 1008 | /** |
902 | - * @param modificationDate the modificationDate to set | 1009 | + * @param c1Min the c1Min to set |
903 | */ | 1010 | */ |
904 | - public void setModificationDate(Date modificationDate) { | ||
905 | - this.modificationDate = modificationDate; | 1011 | + public void setC1Min(Double c1Min) { |
1012 | + this.c1Min = c1Min; | ||
906 | } | 1013 | } |
907 | 1014 | ||
908 | /** | 1015 | /** |
909 | - * @return the releaseDate | 1016 | + * @param c1ResolMax the c1ResolMax to set |
910 | */ | 1017 | */ |
911 | - public Date getReleaseDate() { | ||
912 | - return releaseDate; | 1018 | + public void setC1ResolMax(Double c1ResolMax) { |
1019 | + this.c1ResolMax = c1ResolMax; | ||
913 | } | 1020 | } |
914 | 1021 | ||
915 | /** | 1022 | /** |
916 | - * @param releaseDate the releaseDate to set | 1023 | + * @param c1ResolMin the c1ResolMin to set |
917 | */ | 1024 | */ |
918 | - public void setReleaseDate(Date releaseDate) { | ||
919 | - this.releaseDate = releaseDate; | 1025 | + public void setC1ResolMin(Double c1ResolMin) { |
1026 | + this.c1ResolMin = c1ResolMin; | ||
920 | } | 1027 | } |
921 | 1028 | ||
922 | /** | 1029 | /** |
923 | - * @return the serviceTitle | 1030 | + * @param c2Max the c2Max to set |
924 | */ | 1031 | */ |
925 | - public String getServiceTitle() { | ||
926 | - return serviceTitle; | 1032 | + public void setC2Max(Double c2Max) { |
1033 | + this.c2Max = c2Max; | ||
927 | } | 1034 | } |
928 | 1035 | ||
929 | /** | 1036 | /** |
930 | - * @param serviceTitle the serviceTitle to set | 1037 | + * @param c2Min the c2Min to set |
931 | */ | 1038 | */ |
932 | - public void setServiceTitle(String serviceTitle) { | ||
933 | - this.serviceTitle = serviceTitle; | 1039 | + public void setC2Min(Double c2Min) { |
1040 | + this.c2Min = c2Min; | ||
934 | } | 1041 | } |
935 | 1042 | ||
936 | /** | 1043 | /** |
937 | - * @return the accessUrl | 1044 | + * @param c2ResolMax the c2ResolMax to set |
938 | */ | 1045 | */ |
939 | - public String getAccessUrl() { | ||
940 | - return accessUrl; | 1046 | + public void setC2ResolMax(Double c2ResolMax) { |
1047 | + this.c2ResolMax = c2ResolMax; | ||
941 | } | 1048 | } |
942 | 1049 | ||
943 | /** | 1050 | /** |
944 | - * @param accessUrl the accessUrl to set | 1051 | + * @param c2ResolMin the c2ResolMin to set |
945 | */ | 1052 | */ |
946 | - public void setAccessUrl(String accessUrl) { | ||
947 | - this.accessUrl = accessUrl; | 1053 | + public void setC2ResolMin(Double c2ResolMin) { |
1054 | + this.c2ResolMin = c2ResolMin; | ||
948 | } | 1055 | } |
949 | 1056 | ||
950 | /** | 1057 | /** |
951 | - * @return the accessFormat | 1058 | + * @param c3Max the c3Max to set |
952 | */ | 1059 | */ |
953 | - public String getAccessFormat() { | ||
954 | - return accessFormat; | 1060 | + public void setC3Max(Double c3Max) { |
1061 | + this.c3Max = c3Max; | ||
955 | } | 1062 | } |
956 | 1063 | ||
957 | /** | 1064 | /** |
958 | - * @param accessFormat the accessFormat to set | 1065 | + * @param c3Min the c3Min to set |
959 | */ | 1066 | */ |
960 | - public void setAccessFormat(String accessFormat) { | ||
961 | - this.accessFormat = accessFormat; | 1067 | + public void setC3Min(Double c3Min) { |
1068 | + this.c3Min = c3Min; | ||
962 | } | 1069 | } |
963 | 1070 | ||
964 | /** | 1071 | /** |
965 | - * @return the accessEstsize | 1072 | + * @param c3ResolMax the c3ResolMax to set |
966 | */ | 1073 | */ |
967 | - public int getAccessEstsize() { | ||
968 | - return accessEstsize; | 1074 | + public void setC3ResolMax(Double c3ResolMax) { |
1075 | + this.c3ResolMax = c3ResolMax; | ||
969 | } | 1076 | } |
970 | 1077 | ||
971 | /** | 1078 | /** |
972 | - * @param accessEstsize the accessEstsize to set | 1079 | + * @param c3ResolMin the c3ResolMin to set |
973 | */ | 1080 | */ |
974 | - public void setAccessEstsize(int accessEstsize) { | ||
975 | - this.accessEstsize = accessEstsize; | 1081 | + public void setC3ResolMin(Double c3ResolMin) { |
1082 | + this.c3ResolMin = c3ResolMin; | ||
976 | } | 1083 | } |
977 | 1084 | ||
978 | /** | 1085 | /** |
979 | - * @return the dataAccessUrl | 1086 | + * @param creationDate the creationDate to set |
980 | */ | 1087 | */ |
981 | - public String getDataAccessUrl() { | ||
982 | - return dataAccessUrl; | 1088 | + public void setCreationDate(Date creationDate) { |
1089 | + this.creationDate = creationDate; | ||
983 | } | 1090 | } |
984 | 1091 | ||
985 | /** | 1092 | /** |
@@ -990,38 +1097,38 @@ public class Granule { | @@ -990,38 +1097,38 @@ public class Granule { | ||
990 | } | 1097 | } |
991 | 1098 | ||
992 | /** | 1099 | /** |
993 | - * @return the accessMd5 | 1100 | + * @param dataproductType the dataproductType to set |
994 | */ | 1101 | */ |
995 | - public String getAccessMd5() { | ||
996 | - return accessMd5; | 1102 | + public void setDataproductType(String dataproductType) { |
1103 | + this.dataproductType = dataproductType; | ||
997 | } | 1104 | } |
998 | 1105 | ||
999 | /** | 1106 | /** |
1000 | - * @param accessMd5 the accessMd5 to set | 1107 | + * @param dec the dec to set |
1001 | */ | 1108 | */ |
1002 | - public void setAccessMd5(String accessMd5) { | ||
1003 | - this.accessMd5 = accessMd5; | 1109 | + public void setDec(double dec) { |
1110 | + this.dec = dec; | ||
1004 | } | 1111 | } |
1005 | 1112 | ||
1006 | /** | 1113 | /** |
1007 | - * @return the thumbnailUrl | 1114 | + * @param emergenceMax the emergenceMax to set |
1008 | */ | 1115 | */ |
1009 | - public String getThumbnailUrl() { | ||
1010 | - return thumbnailUrl; | 1116 | + public void setEmergenceMax(Double emergenceMax) { |
1117 | + this.emergenceMax = emergenceMax; | ||
1011 | } | 1118 | } |
1012 | 1119 | ||
1013 | /** | 1120 | /** |
1014 | - * @param thumbnailUrl the thumbnailUrl to set | 1121 | + * @param emergenceMin the emergenceMin to set |
1015 | */ | 1122 | */ |
1016 | - public void setThumbnailUrl(String thumbnailUrl) { | ||
1017 | - this.thumbnailUrl = thumbnailUrl; | 1123 | + public void setEmergenceMin(Double emergenceMin) { |
1124 | + this.emergenceMin = emergenceMin; | ||
1018 | } | 1125 | } |
1019 | 1126 | ||
1020 | /** | 1127 | /** |
1021 | - * @return the fileName | 1128 | + * @param featureName the featureName to set |
1022 | */ | 1129 | */ |
1023 | - public String getFileName() { | ||
1024 | - return fileName; | 1130 | + public void setFeatureName(String featureName) { |
1131 | + this.featureName = featureName; | ||
1025 | } | 1132 | } |
1026 | 1133 | ||
1027 | /** | 1134 | /** |
@@ -1032,360 +1139,353 @@ public class Granule { | @@ -1032,360 +1139,353 @@ public class Granule { | ||
1032 | } | 1139 | } |
1033 | 1140 | ||
1034 | /** | 1141 | /** |
1035 | - * @return the species | ||
1036 | - */ | ||
1037 | - public String getSpecies() { | ||
1038 | - return species; | ||
1039 | - } | ||
1040 | - | ||
1041 | - /** | ||
1042 | - * @param species the species to set | 1142 | + * @param granuleGid the granuleGid to set |
1043 | */ | 1143 | */ |
1044 | - public void setSpecies(String species) { | ||
1045 | - this.species = species; | 1144 | + public void setGranuleGid(String granuleGid) { |
1145 | + this.granuleGid = granuleGid; | ||
1046 | } | 1146 | } |
1047 | 1147 | ||
1048 | /** | 1148 | /** |
1049 | - * @return the altTargetName | 1149 | + * @param granuleUid the granuleUid to set |
1050 | */ | 1150 | */ |
1051 | - public String getAltTargetName() { | ||
1052 | - return altTargetName; | 1151 | + public void setGranuleUid(String granuleUid) { |
1152 | + this.granuleUid = granuleUid; | ||
1053 | } | 1153 | } |
1054 | 1154 | ||
1055 | /** | 1155 | /** |
1056 | - * @param altTargetName the altTargetName to set | 1156 | + * @param incidenceMax the incidenceMax to set |
1057 | */ | 1157 | */ |
1058 | - public void setAltTargetName(String altTargetName) { | ||
1059 | - this.altTargetName = altTargetName; | 1158 | + public void setIncidenceMax(Double incidenceMax) { |
1159 | + this.incidenceMax = incidenceMax; | ||
1060 | } | 1160 | } |
1061 | 1161 | ||
1062 | /** | 1162 | /** |
1063 | - * @return the targetRegion | 1163 | + * @param incidenceMin the incidenceMin to set |
1064 | */ | 1164 | */ |
1065 | - public String getTargetRegion() { | ||
1066 | - return targetRegion; | 1165 | + public void setIncidenceMin(Double incidenceMin) { |
1166 | + this.incidenceMin = incidenceMin; | ||
1067 | } | 1167 | } |
1068 | 1168 | ||
1069 | /** | 1169 | /** |
1070 | - * @param targetRegion the targetRegion to set | 1170 | + * @param instrumentHostName the instrumentHostName to set |
1071 | */ | 1171 | */ |
1072 | - public void setTargetRegion(String targetRegion) { | ||
1073 | - this.targetRegion = targetRegion; | 1172 | + public void setInstrumentHostName(String instrumentHostName) { |
1173 | + this.instrumentHostName = instrumentHostName; | ||
1074 | } | 1174 | } |
1075 | 1175 | ||
1076 | /** | 1176 | /** |
1077 | - * @return the featureName | 1177 | + * @param instrumentName the instrumentName to set |
1078 | */ | 1178 | */ |
1079 | - public String getFeatureName() { | ||
1080 | - return featureName; | 1179 | + public void setInstrumentName(String instrumentName) { |
1180 | + this.instrumentName = instrumentName; | ||
1081 | } | 1181 | } |
1082 | 1182 | ||
1083 | /** | 1183 | /** |
1084 | - * @param featureName the featureName to set | 1184 | + * @param localTimeMax the localTimeMax to set |
1085 | */ | 1185 | */ |
1086 | - public void setFeatureName(String featureName) { | ||
1087 | - this.featureName = featureName; | 1186 | + public void setLocalTimeMax(double localTimeMax) { |
1187 | + this.localTimeMax = localTimeMax; | ||
1088 | } | 1188 | } |
1089 | 1189 | ||
1090 | /** | 1190 | /** |
1091 | - * @return the bibReference | 1191 | + * @param localTimeMin the localTimeMin to set |
1092 | */ | 1192 | */ |
1093 | - public String getBibReference() { | ||
1094 | - return bibReference; | 1193 | + public void setLocalTimeMin(double localTimeMin) { |
1194 | + this.localTimeMin = localTimeMin; | ||
1095 | } | 1195 | } |
1096 | 1196 | ||
1097 | /** | 1197 | /** |
1098 | - * @param bibReference the bibReference to set | 1198 | + * @param measurementType the measurementType to set |
1099 | */ | 1199 | */ |
1100 | - public void setBibReference(String bibReference) { | ||
1101 | - this.bibReference = bibReference; | 1200 | + public void setMeasurementType(String measurementType) { |
1201 | + this.measurementType = measurementType; | ||
1102 | } | 1202 | } |
1103 | 1203 | ||
1104 | /** | 1204 | /** |
1105 | - * @return the ra | 1205 | + * @param modificationDate the modificationDate to set |
1106 | */ | 1206 | */ |
1107 | - public double getRa() { | ||
1108 | - return ra; | 1207 | + public void setModificationDate(Date modificationDate) { |
1208 | + this.modificationDate = modificationDate; | ||
1109 | } | 1209 | } |
1110 | 1210 | ||
1111 | /** | 1211 | /** |
1112 | - * @param ra the ra to set | ||
1113 | - */ | ||
1114 | - public void setRa(double ra) { | ||
1115 | - this.ra = ra; | 1212 | + * @param obsId the obsId to set |
1213 | + */ | ||
1214 | + public void setObsId(String obsId) { | ||
1215 | + this.obsId = obsId; | ||
1116 | } | 1216 | } |
1117 | 1217 | ||
1118 | /** | 1218 | /** |
1119 | - * @return the dec | 1219 | + * @param particleSpectralRangeMax the particleSpectralRangeMax to set |
1120 | */ | 1220 | */ |
1121 | - public double getDec() { | ||
1122 | - return dec; | 1221 | + public void setParticleSpectralRangeMax(double particleSpectralRangeMax) { |
1222 | + this.particleSpectralRangeMax = particleSpectralRangeMax; | ||
1123 | } | 1223 | } |
1124 | 1224 | ||
1125 | /** | 1225 | /** |
1126 | - * @param dec the dec to set | 1226 | + * @param particleSpectralRangeMin the particleSpectralRangeMin to set |
1127 | */ | 1227 | */ |
1128 | - public void setDec(double dec) { | ||
1129 | - this.dec = dec; | 1228 | + public void setParticleSpectralRangeMin(double particleSpectralRangeMin) { |
1229 | + this.particleSpectralRangeMin = particleSpectralRangeMin; | ||
1130 | } | 1230 | } |
1131 | 1231 | ||
1132 | /** | 1232 | /** |
1133 | - * @return the solarLongitudeMin | 1233 | + * @param particleSpectralResolutionMax the particleSpectralResolutionMax to set |
1134 | */ | 1234 | */ |
1135 | - public double getSolarLongitudeMin() { | ||
1136 | - return solarLongitudeMin; | 1235 | + public void setParticleSpectralResolutionMax(double particleSpectralResolutionMax) { |
1236 | + this.particleSpectralResolutionMax = particleSpectralResolutionMax; | ||
1137 | } | 1237 | } |
1138 | 1238 | ||
1139 | /** | 1239 | /** |
1140 | - * @param solarLongitudeMin the solarLongitudeMin to set | 1240 | + * @param particleSpectralResolutionMin the particleSpectralResolutionMin to set |
1141 | */ | 1241 | */ |
1142 | - public void setSolarLongitudeMin(double solarLongitudeMin) { | ||
1143 | - this.solarLongitudeMin = solarLongitudeMin; | 1242 | + public void setParticleSpectralResolutionMin(double particleSpectralResolutionMin) { |
1243 | + this.particleSpectralResolutionMin = particleSpectralResolutionMin; | ||
1144 | } | 1244 | } |
1145 | 1245 | ||
1146 | /** | 1246 | /** |
1147 | - * @return the solarLongitudeMax | 1247 | + * @param particleSpectralSamplingStepMax the particleSpectralSamplingStepMax to set |
1148 | */ | 1248 | */ |
1149 | - public double getSolarLongitudeMax() { | ||
1150 | - return solarLongitudeMax; | 1249 | + public void setParticleSpectralSamplingStepMax(double particleSpectralSamplingStepMax) { |
1250 | + this.particleSpectralSamplingStepMax = particleSpectralSamplingStepMax; | ||
1151 | } | 1251 | } |
1152 | 1252 | ||
1153 | /** | 1253 | /** |
1154 | - * @param solarLongitudeMax the solarLongitudeMax to set | 1254 | + * @param particleSpectralSamplingStepMin the particleSpectralSamplingStepMin to set |
1155 | */ | 1255 | */ |
1156 | - public void setSolarLongitudeMax(double solarLongitudeMax) { | ||
1157 | - this.solarLongitudeMax = solarLongitudeMax; | 1256 | + public void setParticleSpectralSamplingStepMin(double particleSpectralSamplingStepMin) { |
1257 | + this.particleSpectralSamplingStepMin = particleSpectralSamplingStepMin; | ||
1158 | } | 1258 | } |
1159 | 1259 | ||
1160 | /** | 1260 | /** |
1161 | - * @return the localTimeMin | 1261 | + * @param particleSpectralType the particleSpectralType to set |
1162 | */ | 1262 | */ |
1163 | - public double getLocalTimeMin() { | ||
1164 | - return localTimeMin; | 1263 | + public void setParticleSpectralType(String particleSpectralType) { |
1264 | + this.particleSpectralType = particleSpectralType; | ||
1165 | } | 1265 | } |
1166 | 1266 | ||
1167 | /** | 1267 | /** |
1168 | - * @param localTimeMin the localTimeMin to set | 1268 | + * @param phaseMax the phaseMax to set |
1169 | */ | 1269 | */ |
1170 | - public void setLocalTimeMin(double localTimeMin) { | ||
1171 | - this.localTimeMin = localTimeMin; | 1270 | + public void setPhaseMax(Double phaseMax) { |
1271 | + this.phaseMax = phaseMax; | ||
1172 | } | 1272 | } |
1173 | 1273 | ||
1174 | /** | 1274 | /** |
1175 | - * @return the localTimeMax | 1275 | + * @param phaseMin the phaseMin to set |
1176 | */ | 1276 | */ |
1177 | - public double getLocalTimeMax() { | ||
1178 | - return localTimeMax; | 1277 | + public void setPhaseMin(Double phaseMin) { |
1278 | + this.phaseMin = phaseMin; | ||
1179 | } | 1279 | } |
1180 | 1280 | ||
1181 | /** | 1281 | /** |
1182 | - * @param localTimeMax the localTimeMax to set | 1282 | + * @param processingLevel the processingLevel to set |
1183 | */ | 1283 | */ |
1184 | - public void setLocalTimeMax(double localTimeMax) { | ||
1185 | - this.localTimeMax = localTimeMax; | 1284 | + public void setProcessingLevel(Integer processingLevel) { |
1285 | + this.processingLevel = processingLevel; | ||
1186 | } | 1286 | } |
1187 | 1287 | ||
1188 | /** | 1288 | /** |
1189 | - * @return the targetDistanceMin | 1289 | + * @param publisher the publisher to set |
1190 | */ | 1290 | */ |
1191 | - public double getTargetDistanceMin() { | ||
1192 | - return targetDistanceMin; | 1291 | + public void setPublisher(String publisher) { |
1292 | + this.publisher = publisher; | ||
1193 | } | 1293 | } |
1194 | 1294 | ||
1195 | /** | 1295 | /** |
1196 | - * @param targetDistanceMin the targetDistanceMin to set | 1296 | + * @param ra the ra to set |
1197 | */ | 1297 | */ |
1198 | - public void setTargetDistanceMin(double targetDistanceMin) { | ||
1199 | - this.targetDistanceMin = targetDistanceMin; | 1298 | + public void setRa(double ra) { |
1299 | + this.ra = ra; | ||
1200 | } | 1300 | } |
1201 | 1301 | ||
1202 | /** | 1302 | /** |
1203 | - * @return the targetDistanceMax | 1303 | + * @param releaseDate the releaseDate to set |
1204 | */ | 1304 | */ |
1205 | - public double getTargetDistanceMax() { | ||
1206 | - return targetDistanceMax; | 1305 | + public void setReleaseDate(Date releaseDate) { |
1306 | + this.releaseDate = releaseDate; | ||
1207 | } | 1307 | } |
1208 | 1308 | ||
1209 | /** | 1309 | /** |
1210 | - * @param targetDistanceMax the targetDistanceMax to set | 1310 | + * @param serviceTitle the serviceTitle to set |
1211 | */ | 1311 | */ |
1212 | - public void setTargetDistanceMax(double targetDistanceMax) { | ||
1213 | - this.targetDistanceMax = targetDistanceMax; | 1312 | + public void setServiceTitle(String serviceTitle) { |
1313 | + this.serviceTitle = serviceTitle; | ||
1214 | } | 1314 | } |
1215 | 1315 | ||
1216 | /** | 1316 | /** |
1217 | - * @return the targetTimeMin | 1317 | + * @param solarLongitudeMax the solarLongitudeMax to set |
1218 | */ | 1318 | */ |
1219 | - public double getTargetTimeMin() { | ||
1220 | - return targetTimeMin; | 1319 | + public void setSolarLongitudeMax(double solarLongitudeMax) { |
1320 | + this.solarLongitudeMax = solarLongitudeMax; | ||
1221 | } | 1321 | } |
1222 | 1322 | ||
1223 | /** | 1323 | /** |
1224 | - * @param targetTimeMin the targetTimeMin to set | 1324 | + * @param solarLongitudeMin the solarLongitudeMin to set |
1225 | */ | 1325 | */ |
1226 | - public void setTargetTimeMin(double targetTimeMin) { | ||
1227 | - this.targetTimeMin = targetTimeMin; | 1326 | + public void setSolarLongitudeMin(double solarLongitudeMin) { |
1327 | + this.solarLongitudeMin = solarLongitudeMin; | ||
1228 | } | 1328 | } |
1229 | 1329 | ||
1230 | /** | 1330 | /** |
1231 | - * @return the targetTimeMax | 1331 | + * @param spatialCoordinateDescription the spatialCoordinateDescription to set |
1232 | */ | 1332 | */ |
1233 | - public double getTargetTimeMax() { | ||
1234 | - return targetTimeMax; | 1333 | + public void setSpatialCoordinateDescription(String spatialCoordinateDescription) { |
1334 | + this.spatialCoordinateDescription = spatialCoordinateDescription; | ||
1235 | } | 1335 | } |
1236 | 1336 | ||
1237 | /** | 1337 | /** |
1238 | - * @param targetTimeMax the targetTimeMax to set | 1338 | + * @param spatialFrameType the spatialFrameType to set |
1239 | */ | 1339 | */ |
1240 | - public void setTargetTimeMax(double targetTimeMax) { | ||
1241 | - this.targetTimeMax = targetTimeMax; | 1340 | + public void setSpatialFrameType(String spatialFrameType) { |
1341 | + this.spatialFrameType = spatialFrameType; | ||
1242 | } | 1342 | } |
1243 | 1343 | ||
1244 | /** | 1344 | /** |
1245 | - * @return the particleSpectralType | 1345 | + * @param spatialOrigin the spatialOrigin to set |
1246 | */ | 1346 | */ |
1247 | - public String getParticleSpectralType() { | ||
1248 | - return particleSpectralType; | 1347 | + public void setSpatialOrigin(String spatialOrigin) { |
1348 | + this.spatialOrigin = spatialOrigin; | ||
1249 | } | 1349 | } |
1250 | 1350 | ||
1251 | /** | 1351 | /** |
1252 | - * @param particleSpectralType the particleSpectralType to set | 1352 | + * @param species the species to set |
1253 | */ | 1353 | */ |
1254 | - public void setParticleSpectralType(String particleSpectralType) { | ||
1255 | - this.particleSpectralType = particleSpectralType; | 1354 | + public void setSpecies(String species) { |
1355 | + this.species = species; | ||
1256 | } | 1356 | } |
1257 | 1357 | ||
1258 | /** | 1358 | /** |
1259 | - * @return the particleSpectralRangeMin | 1359 | + * @param spectralRangeMax the spectralRangeMax to set |
1260 | */ | 1360 | */ |
1261 | - public double getParticleSpectralRangeMin() { | ||
1262 | - return particleSpectralRangeMin; | 1361 | + public void setSpectralRangeMax(Double spectralRangeMax) { |
1362 | + this.spectralRangeMax = spectralRangeMax; | ||
1263 | } | 1363 | } |
1264 | 1364 | ||
1265 | /** | 1365 | /** |
1266 | - * @param particleSpectralRangeMin the particleSpectralRangeMin to set | 1366 | + * @param spectralRangeMin the spectralRangeMin to set |
1267 | */ | 1367 | */ |
1268 | - public void setParticleSpectralRangeMin(double particleSpectralRangeMin) { | ||
1269 | - this.particleSpectralRangeMin = particleSpectralRangeMin; | 1368 | + public void setSpectralRangeMin(Double spectralRangeMin) { |
1369 | + this.spectralRangeMin = spectralRangeMin; | ||
1270 | } | 1370 | } |
1271 | 1371 | ||
1272 | /** | 1372 | /** |
1273 | - * @return the particleSpectralRangeMax | 1373 | + * @param spectralResolutionMax the spectralResolutionMax to set |
1274 | */ | 1374 | */ |
1275 | - public double getParticleSpectralRangeMax() { | ||
1276 | - return particleSpectralRangeMax; | 1375 | + public void setSpectralResolutionMax(Double spectralResolutionMax) { |
1376 | + this.spectralResolutionMax = spectralResolutionMax; | ||
1277 | } | 1377 | } |
1278 | 1378 | ||
1279 | /** | 1379 | /** |
1280 | - * @param particleSpectralRangeMax the particleSpectralRangeMax to set | 1380 | + * @param spectralResolutionMin the spectralResolutionMin to set |
1281 | */ | 1381 | */ |
1282 | - public void setParticleSpectralRangeMax(double particleSpectralRangeMax) { | ||
1283 | - this.particleSpectralRangeMax = particleSpectralRangeMax; | 1382 | + public void setSpectralResolutionMin(Double spectralResolutionMin) { |
1383 | + this.spectralResolutionMin = spectralResolutionMin; | ||
1284 | } | 1384 | } |
1285 | 1385 | ||
1286 | /** | 1386 | /** |
1287 | - * @return the particleSpectralSamplingStepMin | 1387 | + * @param spectralSamplingStepMax the spectralSamplingStepMax to set |
1288 | */ | 1388 | */ |
1289 | - public double getParticleSpectralSamplingStepMin() { | ||
1290 | - return particleSpectralSamplingStepMin; | 1389 | + public void setSpectralSamplingStepMax(Double spectralSamplingStepMax) { |
1390 | + this.spectralSamplingStepMax = spectralSamplingStepMax; | ||
1291 | } | 1391 | } |
1292 | 1392 | ||
1293 | /** | 1393 | /** |
1294 | - * @param particleSpectralSamplingStepMin the particleSpectralSamplingStepMin to set | 1394 | + * @param spectralSamplingStepMin the spectralSamplingStepMin to set |
1295 | */ | 1395 | */ |
1296 | - public void setParticleSpectralSamplingStepMin(double particleSpectralSamplingStepMin) { | ||
1297 | - this.particleSpectralSamplingStepMin = particleSpectralSamplingStepMin; | 1396 | + public void setSpectralSamplingStepMin(Double spectralSamplingStepMin) { |
1397 | + this.spectralSamplingStepMin = spectralSamplingStepMin; | ||
1298 | } | 1398 | } |
1299 | 1399 | ||
1300 | /** | 1400 | /** |
1301 | - * @return the particleSpectralSamplingStepMax | 1401 | + * @param sRegion the sRegion to set |
1302 | */ | 1402 | */ |
1303 | - public double getParticleSpectralSamplingStepMax() { | ||
1304 | - return particleSpectralSamplingStepMax; | 1403 | + public void setSRegion(String sRegion) { |
1404 | + this.sRegion = sRegion; | ||
1305 | } | 1405 | } |
1306 | 1406 | ||
1307 | /** | 1407 | /** |
1308 | - * @param particleSpectralSamplingStepMax the particleSpectralSamplingStepMax to set | 1408 | + * @param targetClass the targetClass to set |
1309 | */ | 1409 | */ |
1310 | - public void setParticleSpectralSamplingStepMax(double particleSpectralSamplingStepMax) { | ||
1311 | - this.particleSpectralSamplingStepMax = particleSpectralSamplingStepMax; | 1410 | + public void setTargetClass(String targetClass) { |
1411 | + this.targetClass = targetClass; | ||
1312 | } | 1412 | } |
1313 | 1413 | ||
1314 | /** | 1414 | /** |
1315 | - * @return the particleSpectralResolutionMin | 1415 | + * @param targetDistanceMax the targetDistanceMax to set |
1316 | */ | 1416 | */ |
1317 | - public double getParticleSpectralResolutionMin() { | ||
1318 | - return particleSpectralResolutionMin; | 1417 | + public void setTargetDistanceMax(double targetDistanceMax) { |
1418 | + this.targetDistanceMax = targetDistanceMax; | ||
1319 | } | 1419 | } |
1320 | 1420 | ||
1321 | /** | 1421 | /** |
1322 | - * @param particleSpectralResolutionMin the particleSpectralResolutionMin to set | 1422 | + * @param targetDistanceMin the targetDistanceMin to set |
1323 | */ | 1423 | */ |
1324 | - public void setParticleSpectralResolutionMin(double particleSpectralResolutionMin) { | ||
1325 | - this.particleSpectralResolutionMin = particleSpectralResolutionMin; | 1424 | + public void setTargetDistanceMin(double targetDistanceMin) { |
1425 | + this.targetDistanceMin = targetDistanceMin; | ||
1326 | } | 1426 | } |
1327 | 1427 | ||
1328 | /** | 1428 | /** |
1329 | - * @return the particleSpectralResolutionMax | 1429 | + * @param targetName the targetName to set |
1330 | */ | 1430 | */ |
1331 | - public double getParticleSpectralResolutionMax() { | ||
1332 | - return particleSpectralResolutionMax; | 1431 | + public void setTargetName(String targetName) { |
1432 | + this.targetName = targetName; | ||
1333 | } | 1433 | } |
1334 | 1434 | ||
1335 | /** | 1435 | /** |
1336 | - * @param particleSpectralResolutionMax the particleSpectralResolutionMax to set | 1436 | + * @param targetRegion the targetRegion to set |
1337 | */ | 1437 | */ |
1338 | - public void setParticleSpectralResolutionMax(double particleSpectralResolutionMax) { | ||
1339 | - this.particleSpectralResolutionMax = particleSpectralResolutionMax; | 1438 | + public void setTargetRegion(String targetRegion) { |
1439 | + this.targetRegion = targetRegion; | ||
1340 | } | 1440 | } |
1341 | 1441 | ||
1342 | /** | 1442 | /** |
1343 | - * @return the publisher | 1443 | + * @param targetTimeMax the targetTimeMax to set |
1344 | */ | 1444 | */ |
1345 | - public String getPublisher() { | ||
1346 | - return publisher; | 1445 | + public void setTargetTimeMax(double targetTimeMax) { |
1446 | + this.targetTimeMax = targetTimeMax; | ||
1347 | } | 1447 | } |
1348 | 1448 | ||
1349 | /** | 1449 | /** |
1350 | - * @param publisher the publisher to set | 1450 | + * @param targetTimeMin the targetTimeMin to set |
1351 | */ | 1451 | */ |
1352 | - public void setPublisher(String publisher) { | ||
1353 | - this.publisher = publisher; | 1452 | + public void setTargetTimeMin(double targetTimeMin) { |
1453 | + this.targetTimeMin = targetTimeMin; | ||
1354 | } | 1454 | } |
1355 | 1455 | ||
1356 | /** | 1456 | /** |
1357 | - * @return the spatialCoordinateDescription | 1457 | + * @param thumbnailUrl the thumbnailUrl to set |
1358 | */ | 1458 | */ |
1359 | - public String getSpatialCoordinateDescription() { | ||
1360 | - return spatialCoordinateDescription; | 1459 | + public void setThumbnailUrl(String thumbnailUrl) { |
1460 | + this.thumbnailUrl = thumbnailUrl; | ||
1361 | } | 1461 | } |
1362 | 1462 | ||
1363 | /** | 1463 | /** |
1364 | - * @param spatialCoordinateDescription the spatialCoordinateDescription to set | 1464 | + * @param timeExpMax the timeExpMax to set |
1365 | */ | 1465 | */ |
1366 | - public void setSpatialCoordinateDescription(String spatialCoordinateDescription) { | ||
1367 | - this.spatialCoordinateDescription = spatialCoordinateDescription; | 1466 | + public void setTimeExpMax(Double timeExpMax) { |
1467 | + this.timeExpMax = timeExpMax; | ||
1368 | } | 1468 | } |
1369 | 1469 | ||
1370 | /** | 1470 | /** |
1371 | - * @return the spatialOrigin | 1471 | + * @param timeExpMin the timeExpMin to set |
1372 | */ | 1472 | */ |
1373 | - public String getSpatialOrigin() { | ||
1374 | - return spatialOrigin; | 1473 | + public void setTimeExpMin(Double timeExpMin) { |
1474 | + this.timeExpMin = timeExpMin; | ||
1375 | } | 1475 | } |
1376 | 1476 | ||
1377 | /** | 1477 | /** |
1378 | - * @param spatialOrigin the spatialOrigin to set | 1478 | + * @param timeMax the timeMax to set |
1379 | */ | 1479 | */ |
1380 | - public void setSpatialOrigin(String spatialOrigin) { | ||
1381 | - this.spatialOrigin = spatialOrigin; | 1480 | + public void setTimeMax(Double timeMax) { |
1481 | + this.timeMax = timeMax; | ||
1382 | } | 1482 | } |
1383 | 1483 | ||
1384 | /** | 1484 | /** |
1385 | - * @return the timeOrigin | 1485 | + * @param timeMin the timeMin to set |
1386 | */ | 1486 | */ |
1387 | - public String getTimeOrigin() { | ||
1388 | - return timeOrigin; | 1487 | + public void setTimeMin(Double timeMin) { |
1488 | + this.timeMin = timeMin; | ||
1389 | } | 1489 | } |
1390 | 1490 | ||
1391 | /** | 1491 | /** |
@@ -1396,55 +1496,28 @@ public class Granule { | @@ -1396,55 +1496,28 @@ public class Granule { | ||
1396 | } | 1496 | } |
1397 | 1497 | ||
1398 | /** | 1498 | /** |
1399 | - * @return the timeScale | 1499 | + * @param timeSamplingStepMax the timeSamplingStepMax to set |
1400 | */ | 1500 | */ |
1401 | - public String getTimeScale() { | ||
1402 | - return timeScale; | 1501 | + public void setTimeSamplingStepMax(Double timeSamplingStepMax) { |
1502 | + this.timeSamplingStepMax = timeSamplingStepMax; | ||
1403 | } | 1503 | } |
1404 | 1504 | ||
1405 | /** | 1505 | /** |
1406 | - * @param timeScale the timeScale to set | 1506 | + * @param timeSamplingStepMin the timeSamplingStepMin to set |
1407 | */ | 1507 | */ |
1408 | - public void setTimeScale(String timeScale) { | ||
1409 | - this.timeScale = timeScale; | 1508 | + public void setTimeSamplingStepMin(Double timeSamplingStepMin) { |
1509 | + this.timeSamplingStepMin = timeSamplingStepMin; | ||
1410 | } | 1510 | } |
1411 | 1511 | ||
1412 | /** | 1512 | /** |
1413 | - * A granule is valid if all mandatory parameters are filled. | ||
1414 | - * | ||
1415 | - * @return true if the Granule is valid, false otherwise. | 1513 | + * @param timeScale the timeScale to set |
1416 | */ | 1514 | */ |
1417 | - public boolean isValid() { | ||
1418 | - boolean valid = granuleUid != null && granuleGid != null && obsId != null; | ||
1419 | - valid = valid && dataproductType != null && targetName != null && targetClass != null; | ||
1420 | - valid = valid && timeMin != null && timeMax != null; | ||
1421 | - valid = valid && timeSamplingStepMin != null && timeSamplingStepMax != null; | ||
1422 | - valid = valid && timeExpMin != null && timeExpMax != null; | ||
1423 | - valid = valid && spectralRangeMin != null && spectralRangeMax != null; | ||
1424 | - valid = valid && timeSamplingStepMin != null && timeSamplingStepMax != null; | ||
1425 | - valid = valid && spectralResolutionMin != null && spectralResolutionMax != null; | ||
1426 | - valid = valid && c1Min != null && c1Max != null; | ||
1427 | - valid = valid && c2Min != null && c2Max != null; | ||
1428 | - valid = valid && c3Min != null && c3Max != null; | ||
1429 | - valid = valid && sRegion != null; | ||
1430 | - valid = valid && c1ResolMin != null && c1ResolMax != null; | ||
1431 | - valid = valid && c2ResolMin != null && c2ResolMax != null; | ||
1432 | - valid = valid && c3ResolMin != null && c3ResolMax != null; | ||
1433 | - valid = valid && spatialFrameType != null; | ||
1434 | - valid = valid && incidenceMin != null && incidenceMax != null; | ||
1435 | - valid = valid && emergenceMin != null && emergenceMax != null; | ||
1436 | - valid = valid && phaseMin != null && phaseMax != null; | ||
1437 | - valid = valid && instrumentHostName != null && instrumentName != null; | ||
1438 | - valid = valid && measurementType != null && processingLevel != null; | ||
1439 | - valid = valid && creationDate != null && modificationDate != null; | ||
1440 | - valid = valid && releaseDate != null && serviceTitle != null; | ||
1441 | - | ||
1442 | - return valid; | 1515 | + public void setTimeScale(String timeScale) { |
1516 | + this.timeScale = timeScale; | ||
1443 | } | 1517 | } |
1444 | 1518 | ||
1445 | @Override | 1519 | @Override |
1446 | public String toString() { | 1520 | public String toString() { |
1447 | return granuleUid; | 1521 | return granuleUid; |
1448 | } | 1522 | } |
1449 | - | ||
1450 | } | 1523 | } |