2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 The Jalview Authors
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/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 package jalview.ws.jws1;
21 import jalview.ws.AWsJob;
23 abstract class WSJob extends AWsJob
28 * @see jalview.ws.AWsJob#clearResponse()
31 public void clearResponse()
39 * @see jalview.ws.AWsJob#hasResponse()
42 public boolean hasResponse()
44 return result != null;
50 * @see jalview.ws.AWsJob#hasStatus()
53 public boolean hasStatus()
55 return result != null && result.getStatus() != null;
59 * The last result object returned by the service.
61 vamsas.objects.simple.Result result;
65 * @see vamsas.objects.simple.Result#getStatus()
67 public String getStatus()
69 return result == null ? null : result.getStatus();
72 public String getState()
74 return result == null ? "NULL result" : "" + result.getState();
79 * @see vamsas.objects.simple.Result#isBroken()
81 public boolean isBroken()
83 return result != null && result.isBroken();
88 * @see vamsas.objects.simple.Result#isFailed()
90 public boolean isFailed()
92 return result != null && result.isFailed();
97 * @see vamsas.objects.simple.Result#isFinished()
99 public boolean isFinished()
101 return result != null && result.isFinished();
106 * @see vamsas.objects.simple.Result#isInvalid()
108 public boolean isInvalid()
110 return result != null && result.isInvalid();
115 * @see vamsas.objects.simple.Result#isJobFailed()
117 public boolean isJobFailed()
119 return result != null && result.isJobFailed();
124 * @see vamsas.objects.simple.Result#isQueued()
126 public boolean isQueued()
128 return result != null && result.isQueued();
133 * @see vamsas.objects.simple.Result#isRunning()
135 public boolean isRunning()
137 return result != null && result.isRunning();
142 * @see vamsas.objects.simple.Result#isServerError()
144 public boolean isServerError()
146 return result != null && result.isServerError();