JAL-1601 Create SecStructPredTask class
[jalview.git] / src / jalview / ws2 / actions / BaseJob.java
index 906b625..79c1aa8 100644 (file)
@@ -25,13 +25,14 @@ import jalview.ws2.api.WebServiceJobHandle;
  * 
  * @author mmwarowny
  */
+// TODO: make class non-abstract by removing isInputValid()
 public abstract class BaseJob implements JobI
 {
   protected final long internalId = MathUtils.getUID();
 
   protected final List<SequenceI> inputSeqs;
 
-  protected JobStatus status = null;
+  protected JobStatus status = JobStatus.CREATED;
 
   protected String log = "";
 
@@ -70,6 +71,7 @@ public abstract class BaseJob implements JobI
    * 
    * @return {@code true} if the input is valid.
    */
+  // FIXME: method not necessary, may incorporate into task#prepare()
   public abstract boolean isInputValid();
 
   /**
@@ -117,7 +119,7 @@ public abstract class BaseJob implements JobI
    * @param log
    *          new log
    */
-  final void setLog(String log)
+  public final void setLog(String log)
   {
     String oldLog = this.log;
     this.log = log;
@@ -136,7 +138,7 @@ public abstract class BaseJob implements JobI
    * 
    * @param errorLog
    */
-  final void setErrorLog(String errorLog)
+  public final void setErrorLog(String errorLog)
   {
     String oldLog = this.errorLog;
     this.errorLog = errorLog;
@@ -161,7 +163,7 @@ public abstract class BaseJob implements JobI
    * 
    * @param job
    */
-  final void setServerJob(WebServiceJobHandle job)
+  public final void setServerJob(WebServiceJobHandle job)
   {
     this.serverJob = job;
   }
@@ -175,7 +177,7 @@ public abstract class BaseJob implements JobI
    * @param listener
    *          property change listener
    */
-  public final void addPropertyChagneListener(PropertyChangeListener listener)
+  public final void addPropertyChangeListener(PropertyChangeListener listener)
   {
     pcs.addPropertyChangeListener(listener);
   }