4 package jalview.ws.jws1;
6 import jalview.ws.AWsJob;
8 abstract class WSJob extends AWsJob
11 * @see jalview.ws.AWsJob#clearResponse()
14 public void clearResponse()
20 * @see jalview.ws.AWsJob#hasResponse()
23 public boolean hasResponse()
29 * @see jalview.ws.AWsJob#hasStatus()
32 public boolean hasStatus()
34 return result!=null && result.getStatus()!=null;
38 * The last result object returned by the service.
40 vamsas.objects.simple.Result result;
44 * @see vamsas.objects.simple.Result#getStatus()
46 public String getStatus()
48 return result==null ? null : result.getStatus();
51 public String getState() {
52 return result==null ? "NULL result" : ""+result.getState();
56 * @see vamsas.objects.simple.Result#isBroken()
58 public boolean isBroken()
60 return result!=null && result.isBroken();
65 * @see vamsas.objects.simple.Result#isFailed()
67 public boolean isFailed()
69 return result!=null && result.isFailed();
74 * @see vamsas.objects.simple.Result#isFinished()
76 public boolean isFinished()
78 return result!=null && result.isFinished();
83 * @see vamsas.objects.simple.Result#isInvalid()
85 public boolean isInvalid()
87 return result!=null && result.isInvalid();
92 * @see vamsas.objects.simple.Result#isJobFailed()
94 public boolean isJobFailed()
96 return result!=null && result.isJobFailed();
101 * @see vamsas.objects.simple.Result#isQueued()
103 public boolean isQueued()
105 return result!=null && result.isQueued();
110 * @see vamsas.objects.simple.Result#isRunning()
112 public boolean isRunning()
114 return result!=null && result.isRunning();
119 * @see vamsas.objects.simple.Result#isServerError()
121 public boolean isServerError()
123 return result!=null && result.isServerError();