Formatted source
[jalview.git] / src / vamsas / objects / simple / Result.java
1 /**
2  * Result.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */\r
7 \r
8 /*
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
25 */\r
26 package vamsas.objects.simple;\r
27 \r
28 public class Result implements java.io.Serializable {\r
29     private boolean broken;\r
30     private boolean failed;\r
31     private boolean finished;\r
32     private boolean invalid;\r
33     private boolean jobFailed;\r
34     private boolean queued;\r
35     private boolean running;\r
36     private boolean serverError;\r
37     private int state;\r
38     private java.lang.String status;\r
39     private boolean suspended;\r
40     private java.lang.Object __equalsCalc = null;\r
41     private boolean __hashCodeCalc = false;\r
42 \r
43     public Result() {\r
44     }\r
45 \r
46     public Result(boolean broken, boolean failed, boolean finished,\r
47         boolean invalid, boolean jobFailed, boolean queued, boolean running,\r
48         boolean serverError, int state, java.lang.String status,\r
49         boolean suspended) {\r
50         this.broken = broken;\r
51         this.failed = failed;\r
52         this.finished = finished;\r
53         this.invalid = invalid;\r
54         this.jobFailed = jobFailed;\r
55         this.queued = queued;\r
56         this.running = running;\r
57         this.serverError = serverError;\r
58         this.state = state;\r
59         this.status = status;\r
60         this.suspended = suspended;\r
61     }\r
62 \r
63     /**
64  * Gets the broken value for this Result.
65  *
66  * @return broken
67  */\r
68     public boolean isBroken() {\r
69         return broken;\r
70     }\r
71 \r
72     /**
73  * Sets the broken value for this Result.
74  *
75  * @param broken
76  */\r
77     public void setBroken(boolean broken) {\r
78         this.broken = broken;\r
79     }\r
80 \r
81     /**
82  * Gets the failed value for this Result.
83  *
84  * @return failed
85  */\r
86     public boolean isFailed() {\r
87         return failed;\r
88     }\r
89 \r
90     /**
91  * Sets the failed value for this Result.
92  *
93  * @param failed
94  */\r
95     public void setFailed(boolean failed) {\r
96         this.failed = failed;\r
97     }\r
98 \r
99     /**
100  * Gets the finished value for this Result.
101  *
102  * @return finished
103  */\r
104     public boolean isFinished() {\r
105         return finished;\r
106     }\r
107 \r
108     /**
109  * Sets the finished value for this Result.
110  *
111  * @param finished
112  */\r
113     public void setFinished(boolean finished) {\r
114         this.finished = finished;\r
115     }\r
116 \r
117     /**
118  * Gets the invalid value for this Result.
119  *
120  * @return invalid
121  */\r
122     public boolean isInvalid() {\r
123         return invalid;\r
124     }\r
125 \r
126     /**
127  * Sets the invalid value for this Result.
128  *
129  * @param invalid
130  */\r
131     public void setInvalid(boolean invalid) {\r
132         this.invalid = invalid;\r
133     }\r
134 \r
135     /**
136  * Gets the jobFailed value for this Result.
137  *
138  * @return jobFailed
139  */\r
140     public boolean isJobFailed() {\r
141         return jobFailed;\r
142     }\r
143 \r
144     /**
145  * Sets the jobFailed value for this Result.
146  *
147  * @param jobFailed
148  */\r
149     public void setJobFailed(boolean jobFailed) {\r
150         this.jobFailed = jobFailed;\r
151     }\r
152 \r
153     /**
154  * Gets the queued value for this Result.
155  *
156  * @return queued
157  */\r
158     public boolean isQueued() {\r
159         return queued;\r
160     }\r
161 \r
162     /**
163  * Sets the queued value for this Result.
164  *
165  * @param queued
166  */\r
167     public void setQueued(boolean queued) {\r
168         this.queued = queued;\r
169     }\r
170 \r
171     /**
172  * Gets the running value for this Result.
173  *
174  * @return running
175  */\r
176     public boolean isRunning() {\r
177         return running;\r
178     }\r
179 \r
180     /**
181  * Sets the running value for this Result.
182  *
183  * @param running
184  */\r
185     public void setRunning(boolean running) {\r
186         this.running = running;\r
187     }\r
188 \r
189     /**
190  * Gets the serverError value for this Result.
191  *
192  * @return serverError
193  */\r
194     public boolean isServerError() {\r
195         return serverError;\r
196     }\r
197 \r
198     /**
199  * Sets the serverError value for this Result.
200  *
201  * @param serverError
202  */\r
203     public void setServerError(boolean serverError) {\r
204         this.serverError = serverError;\r
205     }\r
206 \r
207     /**
208  * Gets the state value for this Result.
209  *
210  * @return state
211  */\r
212     public int getState() {\r
213         return state;\r
214     }\r
215 \r
216     /**
217  * Sets the state value for this Result.
218  *
219  * @param state
220  */\r
221     public void setState(int state) {\r
222         this.state = state;\r
223     }\r
224 \r
225     /**
226  * Gets the status value for this Result.
227  *
228  * @return status
229  */\r
230     public java.lang.String getStatus() {\r
231         return status;\r
232     }\r
233 \r
234     /**
235  * Sets the status value for this Result.
236  *
237  * @param status
238  */\r
239     public void setStatus(java.lang.String status) {\r
240         this.status = status;\r
241     }\r
242 \r
243     /**
244  * Gets the suspended value for this Result.
245  *
246  * @return suspended
247  */\r
248     public boolean isSuspended() {\r
249         return suspended;\r
250     }\r
251 \r
252     /**
253  * Sets the suspended value for this Result.
254  *
255  * @param suspended
256  */\r
257     public void setSuspended(boolean suspended) {\r
258         this.suspended = suspended;\r
259     }\r
260 \r
261     public synchronized boolean equals(java.lang.Object obj) {\r
262         if (!(obj instanceof Result)) {\r
263             return false;\r
264         }\r
265 \r
266         Result other = (Result) obj;\r
267 \r
268         if (obj == null) {\r
269             return false;\r
270         }\r
271 \r
272         if (this == obj) {\r
273             return true;\r
274         }\r
275 \r
276         if (__equalsCalc != null) {\r
277             return (__equalsCalc == obj);\r
278         }\r
279 \r
280         __equalsCalc = obj;\r
281 \r
282         boolean _equals;\r
283         _equals = true && (this.broken == other.isBroken()) &&\r
284             (this.failed == other.isFailed()) &&\r
285             (this.finished == other.isFinished()) &&\r
286             (this.invalid == other.isInvalid()) &&\r
287             (this.jobFailed == other.isJobFailed()) &&\r
288             (this.queued == other.isQueued()) &&\r
289             (this.running == other.isRunning()) &&\r
290             (this.serverError == other.isServerError()) &&\r
291             (this.state == other.getState()) &&\r
292             (((this.status == null) && (other.getStatus() == null)) ||\r
293             ((this.status != null) && this.status.equals(other.getStatus()))) &&\r
294             (this.suspended == other.isSuspended());\r
295         __equalsCalc = null;\r
296 \r
297         return _equals;\r
298     }\r
299 \r
300     public synchronized int hashCode() {\r
301         if (__hashCodeCalc) {\r
302             return 0;\r
303         }\r
304 \r
305         __hashCodeCalc = true;\r
306 \r
307         int _hashCode = 1;\r
308         _hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
309         _hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
310         _hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
311         _hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
312         _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
313         _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
314         _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
315         _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
316         _hashCode += getState();\r
317 \r
318         if (getStatus() != null) {\r
319             _hashCode += getStatus().hashCode();\r
320         }\r
321 \r
322         _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
323         __hashCodeCalc = false;\r
324 \r
325         return _hashCode;\r
326     }\r
327 }\r