4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
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.
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.
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
27 package vamsas.objects.simple;
29 public class Result implements java.io.Serializable {
30 private boolean broken;
31 private boolean failed;
32 private boolean finished;
33 private boolean invalid;
34 private boolean jobFailed;
35 private boolean queued;
36 private boolean running;
37 private boolean serverError;
39 private java.lang.String status;
40 private boolean suspended;
55 java.lang.String status,
59 this.finished = finished;
60 this.invalid = invalid;
61 this.jobFailed = jobFailed;
63 this.running = running;
64 this.serverError = serverError;
67 this.suspended = suspended;
72 * Gets the broken value for this Result.
76 public boolean isBroken() {
82 * Sets the broken value for this Result.
86 public void setBroken(boolean broken) {
92 * Gets the failed value for this Result.
96 public boolean isFailed() {
102 * Sets the failed value for this Result.
106 public void setFailed(boolean failed) {
107 this.failed = failed;
112 * Gets the finished value for this Result.
116 public boolean isFinished() {
122 * Sets the finished value for this Result.
126 public void setFinished(boolean finished) {
127 this.finished = finished;
132 * Gets the invalid value for this Result.
136 public boolean isInvalid() {
142 * Sets the invalid value for this Result.
146 public void setInvalid(boolean invalid) {
147 this.invalid = invalid;
152 * Gets the jobFailed value for this Result.
156 public boolean isJobFailed() {
162 * Sets the jobFailed value for this Result.
166 public void setJobFailed(boolean jobFailed) {
167 this.jobFailed = jobFailed;
172 * Gets the queued value for this Result.
176 public boolean isQueued() {
182 * Sets the queued value for this Result.
186 public void setQueued(boolean queued) {
187 this.queued = queued;
192 * Gets the running value for this Result.
196 public boolean isRunning() {
202 * Sets the running value for this Result.
206 public void setRunning(boolean running) {
207 this.running = running;
212 * Gets the serverError value for this Result.
214 * @return serverError
216 public boolean isServerError() {
222 * Sets the serverError value for this Result.
226 public void setServerError(boolean serverError) {
227 this.serverError = serverError;
232 * Gets the state value for this Result.
236 public int getState() {
242 * Sets the state value for this Result.
246 public void setState(int state) {
252 * Gets the status value for this Result.
256 public java.lang.String getStatus() {
262 * Sets the status value for this Result.
266 public void setStatus(java.lang.String status) {
267 this.status = status;
272 * Gets the suspended value for this Result.
276 public boolean isSuspended() {
282 * Sets the suspended value for this Result.
286 public void setSuspended(boolean suspended) {
287 this.suspended = suspended;
290 private java.lang.Object __equalsCalc = null;
291 public synchronized boolean equals(java.lang.Object obj) {
292 if (!(obj instanceof Result)) return false;
293 Result other = (Result) obj;
294 if (obj == null) return false;
295 if (this == obj) return true;
296 if (__equalsCalc != null) {
297 return (__equalsCalc == obj);
302 this.broken == other.isBroken() &&
303 this.failed == other.isFailed() &&
304 this.finished == other.isFinished() &&
305 this.invalid == other.isInvalid() &&
306 this.jobFailed == other.isJobFailed() &&
307 this.queued == other.isQueued() &&
308 this.running == other.isRunning() &&
309 this.serverError == other.isServerError() &&
310 this.state == other.getState() &&
311 ((this.status==null && other.getStatus()==null) ||
312 (this.status!=null &&
313 this.status.equals(other.getStatus()))) &&
314 this.suspended == other.isSuspended();
319 private boolean __hashCodeCalc = false;
320 public synchronized int hashCode() {
321 if (__hashCodeCalc) {
324 __hashCodeCalc = true;
326 _hashCode += (isBroken() ? Boolean.TRUE : Boolean.FALSE).hashCode();
327 _hashCode += (isFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
328 _hashCode += (isFinished() ? Boolean.TRUE : Boolean.FALSE).hashCode();
329 _hashCode += (isInvalid() ? Boolean.TRUE : Boolean.FALSE).hashCode();
330 _hashCode += (isJobFailed() ? Boolean.TRUE : Boolean.FALSE).hashCode();
331 _hashCode += (isQueued() ? Boolean.TRUE : Boolean.FALSE).hashCode();
332 _hashCode += (isRunning() ? Boolean.TRUE : Boolean.FALSE).hashCode();
333 _hashCode += (isServerError() ? Boolean.TRUE : Boolean.FALSE).hashCode();
334 _hashCode += getState();
335 if (getStatus() != null) {
336 _hashCode += getStatus().hashCode();
338 _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
339 __hashCodeCalc = false;