First try with MuscleWS and vamsas.simple.objects
[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  */
7
8 package vamsas.objects.simple;
9
10 public class Result  implements java.io.Serializable {
11     private boolean broken;
12     private boolean failed;
13     private boolean finished;
14     private boolean invalid;
15     private boolean jobFailed;
16     private boolean queued;
17     private boolean running;
18     private boolean serverError;
19     private int state;
20     private java.lang.String status;
21     private boolean suspended;
22
23     public Result() {
24     }
25
26     public Result(
27            boolean broken,
28            boolean failed,
29            boolean finished,
30            boolean invalid,
31            boolean jobFailed,
32            boolean queued,
33            boolean running,
34            boolean serverError,
35            int state,
36            java.lang.String status,
37            boolean suspended) {
38            this.broken = broken;
39            this.failed = failed;
40            this.finished = finished;
41            this.invalid = invalid;
42            this.jobFailed = jobFailed;
43            this.queued = queued;
44            this.running = running;
45            this.serverError = serverError;
46            this.state = state;
47            this.status = status;
48            this.suspended = suspended;
49     }
50
51
52     /**
53      * Gets the broken value for this Result.
54      * 
55      * @return broken
56      */
57     public boolean isBroken() {
58         return broken;
59     }
60
61
62     /**
63      * Sets the broken value for this Result.
64      * 
65      * @param broken
66      */
67     public void setBroken(boolean broken) {
68         this.broken = broken;
69     }
70
71
72     /**
73      * Gets the failed value for this Result.
74      * 
75      * @return failed
76      */
77     public boolean isFailed() {
78         return failed;
79     }
80
81
82     /**
83      * Sets the failed value for this Result.
84      * 
85      * @param failed
86      */
87     public void setFailed(boolean failed) {
88         this.failed = failed;
89     }
90
91
92     /**
93      * Gets the finished value for this Result.
94      * 
95      * @return finished
96      */
97     public boolean isFinished() {
98         return finished;
99     }
100
101
102     /**
103      * Sets the finished value for this Result.
104      * 
105      * @param finished
106      */
107     public void setFinished(boolean finished) {
108         this.finished = finished;
109     }
110
111
112     /**
113      * Gets the invalid value for this Result.
114      * 
115      * @return invalid
116      */
117     public boolean isInvalid() {
118         return invalid;
119     }
120
121
122     /**
123      * Sets the invalid value for this Result.
124      * 
125      * @param invalid
126      */
127     public void setInvalid(boolean invalid) {
128         this.invalid = invalid;
129     }
130
131
132     /**
133      * Gets the jobFailed value for this Result.
134      * 
135      * @return jobFailed
136      */
137     public boolean isJobFailed() {
138         return jobFailed;
139     }
140
141
142     /**
143      * Sets the jobFailed value for this Result.
144      * 
145      * @param jobFailed
146      */
147     public void setJobFailed(boolean jobFailed) {
148         this.jobFailed = jobFailed;
149     }
150
151
152     /**
153      * Gets the queued value for this Result.
154      * 
155      * @return queued
156      */
157     public boolean isQueued() {
158         return queued;
159     }
160
161
162     /**
163      * Sets the queued value for this Result.
164      * 
165      * @param queued
166      */
167     public void setQueued(boolean queued) {
168         this.queued = queued;
169     }
170
171
172     /**
173      * Gets the running value for this Result.
174      * 
175      * @return running
176      */
177     public boolean isRunning() {
178         return running;
179     }
180
181
182     /**
183      * Sets the running value for this Result.
184      * 
185      * @param running
186      */
187     public void setRunning(boolean running) {
188         this.running = running;
189     }
190
191
192     /**
193      * Gets the serverError value for this Result.
194      * 
195      * @return serverError
196      */
197     public boolean isServerError() {
198         return serverError;
199     }
200
201
202     /**
203      * Sets the serverError value for this Result.
204      * 
205      * @param serverError
206      */
207     public void setServerError(boolean serverError) {
208         this.serverError = serverError;
209     }
210
211
212     /**
213      * Gets the state value for this Result.
214      * 
215      * @return state
216      */
217     public int getState() {
218         return state;
219     }
220
221
222     /**
223      * Sets the state value for this Result.
224      * 
225      * @param state
226      */
227     public void setState(int state) {
228         this.state = state;
229     }
230
231
232     /**
233      * Gets the status value for this Result.
234      * 
235      * @return status
236      */
237     public java.lang.String getStatus() {
238         return status;
239     }
240
241
242     /**
243      * Sets the status value for this Result.
244      * 
245      * @param status
246      */
247     public void setStatus(java.lang.String status) {
248         this.status = status;
249     }
250
251
252     /**
253      * Gets the suspended value for this Result.
254      * 
255      * @return suspended
256      */
257     public boolean isSuspended() {
258         return suspended;
259     }
260
261
262     /**
263      * Sets the suspended value for this Result.
264      * 
265      * @param suspended
266      */
267     public void setSuspended(boolean suspended) {
268         this.suspended = suspended;
269     }
270
271     private java.lang.Object __equalsCalc = null;
272     public synchronized boolean equals(java.lang.Object obj) {
273         if (!(obj instanceof Result)) return false;
274         Result other = (Result) obj;
275         if (obj == null) return false;
276         if (this == obj) return true;
277         if (__equalsCalc != null) {
278             return (__equalsCalc == obj);
279         }
280         __equalsCalc = obj;
281         boolean _equals;
282         _equals = true && 
283             this.broken == other.isBroken() &&
284             this.failed == other.isFailed() &&
285             this.finished == other.isFinished() &&
286             this.invalid == other.isInvalid() &&
287             this.jobFailed == other.isJobFailed() &&
288             this.queued == other.isQueued() &&
289             this.running == other.isRunning() &&
290             this.serverError == other.isServerError() &&
291             this.state == other.getState() &&
292             ((this.status==null && other.getStatus()==null) || 
293              (this.status!=null &&
294               this.status.equals(other.getStatus()))) &&
295             this.suspended == other.isSuspended();
296         __equalsCalc = null;
297         return _equals;
298     }
299
300     private boolean __hashCodeCalc = false;
301     public synchronized int hashCode() {
302         if (__hashCodeCalc) {
303             return 0;
304         }
305         __hashCodeCalc = true;
306         int _hashCode = 1;
307         _hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode();
308         _hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
309         _hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode();
310         _hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode();
311         _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
312         _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();
313         _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();
314         _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();
315         _hashCode += getState();
316         if (getStatus() != null) {
317             _hashCode += getStatus().hashCode();
318         }
319         _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
320         __hashCodeCalc = false;
321         return _hashCode;
322     }
323
324 }