Clover icon

Coverage Report

  1. Project Clover database Wed Nov 6 2024 14:47:21 GMT
  2. Package vamsas.objects.simple

File Result.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
59% of files have more coverage

Code metrics

30
65
26
1
360
190
41
0.63
2.5
26
1.58

Classes

Class Line # Actions
Result 23 65 41
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

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