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
26 package vamsas.objects.simple;
\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
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
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
59 this.status = status;
\r
60 this.suspended = suspended;
\r
64 * Gets the broken value for this Result.
68 public boolean isBroken() {
\r
73 * Sets the broken value for this Result.
77 public void setBroken(boolean broken) {
\r
78 this.broken = broken;
\r
82 * Gets the failed value for this Result.
86 public boolean isFailed() {
\r
91 * Sets the failed value for this Result.
95 public void setFailed(boolean failed) {
\r
96 this.failed = failed;
\r
100 * Gets the finished value for this Result.
104 public boolean isFinished() {
\r
109 * Sets the finished value for this Result.
113 public void setFinished(boolean finished) {
\r
114 this.finished = finished;
\r
118 * Gets the invalid value for this Result.
122 public boolean isInvalid() {
\r
127 * Sets the invalid value for this Result.
131 public void setInvalid(boolean invalid) {
\r
132 this.invalid = invalid;
\r
136 * Gets the jobFailed value for this Result.
140 public boolean isJobFailed() {
\r
145 * Sets the jobFailed value for this Result.
149 public void setJobFailed(boolean jobFailed) {
\r
150 this.jobFailed = jobFailed;
\r
154 * Gets the queued value for this Result.
158 public boolean isQueued() {
\r
163 * Sets the queued value for this Result.
167 public void setQueued(boolean queued) {
\r
168 this.queued = queued;
\r
172 * Gets the running value for this Result.
176 public boolean isRunning() {
\r
181 * Sets the running value for this Result.
185 public void setRunning(boolean running) {
\r
186 this.running = running;
\r
190 * Gets the serverError value for this Result.
192 * @return serverError
194 public boolean isServerError() {
\r
195 return serverError;
\r
199 * Sets the serverError value for this Result.
203 public void setServerError(boolean serverError) {
\r
204 this.serverError = serverError;
\r
208 * Gets the state value for this Result.
212 public int getState() {
\r
217 * Sets the state value for this Result.
221 public void setState(int state) {
\r
222 this.state = state;
\r
226 * Gets the status value for this Result.
230 public java.lang.String getStatus() {
\r
235 * Sets the status value for this Result.
239 public void setStatus(java.lang.String status) {
\r
240 this.status = status;
\r
244 * Gets the suspended value for this Result.
248 public boolean isSuspended() {
\r
253 * Sets the suspended value for this Result.
257 public void setSuspended(boolean suspended) {
\r
258 this.suspended = suspended;
\r
261 public synchronized boolean equals(java.lang.Object obj) {
\r
262 if (!(obj instanceof Result)) {
\r
266 Result other = (Result) obj;
\r
276 if (__equalsCalc != null) {
\r
277 return (__equalsCalc == obj);
\r
280 __equalsCalc = obj;
\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
300 public synchronized int hashCode() {
\r
301 if (__hashCodeCalc) {
\r
305 __hashCodeCalc = true;
\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
318 if (getStatus() != null) {
\r
319 _hashCode += getStatus().hashCode();
\r
322 _hashCode += (isSuspended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
\r
323 __hashCodeCalc = false;
\r