001/*
002 * Copyright (c) 2010 The Regents of the University of California.
003 * All rights reserved.
004 *
005 * '$Author: welker $'
006 * '$Date: 2010-05-06 05:21:26 +0000 (Thu, 06 May 2010) $' 
007 * '$Revision: 24234 $'
008 * 
009 * Permission is hereby granted, without written agreement and without
010 * license or royalty fees, to use, copy, modify, and distribute this
011 * software and its documentation for any purpose, provided that the above
012 * copyright notice and the following two paragraphs appear in all copies
013 * of this software.
014 *
015 * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
016 * FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
017 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
018 * THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
019 * SUCH DAMAGE.
020 *
021 * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
022 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
023 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
024 * PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
025 * CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
026 * ENHANCEMENTS, OR MODIFICATIONS.
027 *
028 */
029
030/* Lidar jobs monitoring database processing. 
031 */
032
033package org.geon;
034
035//////////////////////////////////////////////////////////////////////////
036//// ExecutionThread
037/**
038 * Thread for executing the Lidar processing.
039 * 
040 * @author Efrat Jaeger
041 */
042public class LidarJobConfig {
043
044        public LidarJobConfig() {
045        }
046
047        public LidarJobConfig(String jobId) {
048                setJobId(jobId);
049        }
050
051        private String jobId;
052        private String userId;
053        private String submissionDate;
054        private String srid;
055        private String numRows;
056        private String xmin;
057        private String xmax;
058        private String ymin;
059        private String ymax;
060        private String res;
061        private String dmin;
062        private String tension;
063        private String smooth;
064        private String queryTime;
065        private String processTime;
066        private String completionDate;
067        private String[] classifications;
068        private String[] processings;
069        private String title;
070        private String description;
071        private String status;
072        private String datasetURI;
073        private String datasetURL;
074
075        public void setJobConfig(String jobId, String userId,
076                        String submissionDate, String srid, String xmin, String xmax,
077                        String ymin, String ymax, String res, String dmin, String tension,
078                        String smooth, String queryTime, String processTime,
079                        String completeDate, String[] classifications,
080                        String[] processings, String jobStatus) {
081                this.jobId = jobId;
082                setJobConfig(userId, submissionDate, srid, xmin, xmax, ymin, ymax, res,
083                                dmin, tension, smooth, queryTime, processTime, completeDate,
084                                classifications, processings, jobStatus);
085        }
086
087        public void setJobConfig(String userId, String submissionDate, String srid,
088                        String xmin, String xmax, String ymin, String ymax, String res,
089                        String dmin, String tension, String smooth, String queryTime,
090                        String processTime, String completeDate, String[] classifications,
091                        String[] processings, String jobStatus) {
092                setUserId(userId);
093                setSubmissionDate(submissionDate);
094                setSrid(srid);
095                setSpatial(xmin, xmax, ymin, ymax);
096                setAlgAtts(res, dmin, tension, smooth);
097                setTimings(queryTime, processTime, completeDate);
098                setClassifications(classifications);
099                setProcessings(processings);
100                setJobStatus(jobStatus);
101        }
102
103        public void setJobId(String jobId) {
104                this.jobId = jobId;
105        }
106
107        public String getJobId() {
108                return jobId;
109        }
110
111        public void setUserId(String userId) {
112                this.userId = userId;
113        }
114
115        public String getUserId() {
116                return userId;
117        }
118
119        public void setSubmissionDate(String submissionDate) {
120                this.submissionDate = submissionDate;
121        }
122
123        public String getSubmissionDate() {
124                return submissionDate;
125        }
126
127        public void setSrid(String srid) {
128                this.srid = srid;
129        }
130
131        public String getSrid() {
132                return srid;
133        }
134
135        public void setNumRows(String numRows) {
136                this.numRows = numRows;
137        }
138
139        public String getNumRows() {
140                return numRows;
141        }
142
143        public void setSpatial(String xmin, String xmax, String ymin, String ymax) {
144                this.xmin = xmin;
145                this.xmax = xmax;
146                this.ymin = ymin;
147                this.ymax = ymax;
148        }
149
150        public String getXmin() {
151                return xmin;
152        }
153
154        public String getXmax() {
155                return xmax;
156        }
157
158        public String getYmin() {
159                return ymin;
160        }
161
162        public String getYmax() {
163                return ymax;
164        }
165
166        public void setAlgAtts(String res, String dmin, String tension,
167                        String smooth) {
168                this.res = res;
169                this.dmin = dmin;
170                this.tension = tension;
171                this.smooth = smooth;
172        }
173
174        public String getRes() {
175                return res;
176        }
177
178        public String getDmin() {
179                return dmin;
180        }
181
182        public String getTension() {
183                return tension;
184        }
185
186        public String getSmooth() {
187                return smooth;
188        }
189
190        public void setTimings(String queryTime, String processTime,
191                        String completeDate) {
192                this.queryTime = queryTime;
193                this.processTime = processTime;
194                this.completionDate = completeDate;
195        }
196
197        public String getQueryTime() {
198                return queryTime;
199        }
200
201        public String getProcessTime() {
202                return processTime;
203        }
204
205        public String getCompletionDate() {
206                return completionDate;
207        }
208
209        public void setJobDescription(String title, String description) {
210                this.title = title;
211                this.description = description;
212        }
213
214        public String getJobTitle() {
215                return title;
216        }
217
218        public String getJobDescription() {
219                return description;
220        }
221
222        public void setJobStatus(String jobStatus) {
223                this.status = jobStatus;
224        }
225
226        public String getJobStatus() {
227                return status;
228        }
229
230        public void setJobDatasetPath(String datasetURI, String datasetURL) {
231                this.datasetURI = datasetURI;
232                this.datasetURL = datasetURL;
233        }
234
235        public String getJobURI() {
236                return datasetURI;
237        }
238
239        public String getJobURL() {
240                return datasetURL;
241        }
242
243        public void setClassifications(String[] classifications) {
244                this.classifications = new String[classifications.length];
245                for (int i = 0; i < classifications.length; i++) {
246                        this.classifications[i] = classifications[i];
247                }
248        }
249
250        public String[] getClassifications() {
251                return classifications;
252        }
253
254        public void setProcessings(String[] processings) {
255                this.processings = new String[processings.length];
256                for (int i = 0; i < processings.length; i++) {
257                        this.processings[i] = processings[i];
258                }
259        }
260
261        public String[] getProcessings() {
262                return processings;
263        }
264}