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