regex search
[jalview.git] / forester / java / src / org / forester / msa / MsaInferrer.java
index 593dd1f..f26b329 100644 (file)
@@ -21,7 +21,7 @@
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 //
 // Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
 
 package org.forester.msa;
 
@@ -29,11 +29,26 @@ import java.io.File;
 import java.io.IOException;
 import java.util.List;
 
-public interface MsaInferrer {
+import org.forester.sequence.MolecularSequence;
+import org.forester.util.SystemCommandExecutor;
 
-    public String getErrorDescription();
+public abstract class MsaInferrer {
 
-    public int getExitCode();
+    public abstract String getErrorDescription();
 
-    public Msa infer( File path_to_input_seqs, List<String> opts ) throws IOException, InterruptedException;
+    public abstract int getExitCode();
+
+    public static boolean isInstalled( final String path_to_prg ) {
+        return SystemCommandExecutor.isExecuteableFile( new File( path_to_prg ) );
+    }
+
+    @Override
+    public Object clone() {
+        throw new NoSuchMethodError();
+    }
+
+    public abstract Msa infer( File path_to_input_seqs, List<String> opts ) throws IOException, InterruptedException;
+
+    public abstract Msa infer( final List<MolecularSequence> seqs, final List<String> opts ) throws IOException,
+            InterruptedException;
 }