2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
3 * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
5 * This file is part of Jalview.
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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
18 package jalview.ws.jws1;
20 import jalview.ws.AWsJob;
22 abstract class WSJob extends AWsJob
25 * @see jalview.ws.AWsJob#clearResponse()
28 public void clearResponse()
34 * @see jalview.ws.AWsJob#hasResponse()
37 public boolean hasResponse()
43 * @see jalview.ws.AWsJob#hasStatus()
46 public boolean hasStatus()
48 return result!=null && result.getStatus()!=null;
52 * The last result object returned by the service.
54 vamsas.objects.simple.Result result;
58 * @see vamsas.objects.simple.Result#getStatus()
60 public String getStatus()
62 return result==null ? null : result.getStatus();
65 public String getState() {
66 return result==null ? "NULL result" : ""+result.getState();
70 * @see vamsas.objects.simple.Result#isBroken()
72 public boolean isBroken()
74 return result!=null && result.isBroken();
79 * @see vamsas.objects.simple.Result#isFailed()
81 public boolean isFailed()
83 return result!=null && result.isFailed();
88 * @see vamsas.objects.simple.Result#isFinished()
90 public boolean isFinished()
92 return result!=null && result.isFinished();
97 * @see vamsas.objects.simple.Result#isInvalid()
99 public boolean isInvalid()
101 return result!=null && result.isInvalid();
106 * @see vamsas.objects.simple.Result#isJobFailed()
108 public boolean isJobFailed()
110 return result!=null && result.isJobFailed();
115 * @see vamsas.objects.simple.Result#isQueued()
117 public boolean isQueued()
119 return result!=null && result.isQueued();
124 * @see vamsas.objects.simple.Result#isRunning()
126 public boolean isRunning()
128 return result!=null && result.isRunning();
133 * @see vamsas.objects.simple.Result#isServerError()
135 public boolean isServerError()
137 return result!=null && result.isServerError();