X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fmsa%2FMsaInferrer.java;h=45fec857ee9bcde6558d702a8a39d78dbfa1db46;hb=e836cdba7ba52df7a886c72842beaaf9a3eea699;hp=593dd1f81434d1b67747ef64ee18d69735942475;hpb=eee996a6476a1e3d84c07f8f690dcde3ff4b2ef5;p=jalview.git diff --git a/forester/java/src/org/forester/msa/MsaInferrer.java b/forester/java/src/org/forester/msa/MsaInferrer.java index 593dd1f..45fec85 100644 --- a/forester/java/src/org/forester/msa/MsaInferrer.java +++ b/forester/java/src/org/forester/msa/MsaInferrer.java @@ -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 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 opts ) throws IOException, InterruptedException; + + public abstract Msa infer( final List seqs, final List opts ) throws IOException, + InterruptedException; }