X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fmsa%2FMsaInferrer.java;h=45fec857ee9bcde6558d702a8a39d78dbfa1db46;hb=761719f91261eb049fada546ba363d4693a3bfa7;hp=801c2470f62934eb923d48d9dce640c293ffbfc6;hpb=48f7a89be9d34f1930a1f863e608235cc27184c5;p=jalview.git diff --git a/forester/java/src/org/forester/msa/MsaInferrer.java b/forester/java/src/org/forester/msa/MsaInferrer.java index 801c247..45fec85 100644 --- a/forester/java/src/org/forester/msa/MsaInferrer.java +++ b/forester/java/src/org/forester/msa/MsaInferrer.java @@ -5,7 +5,7 @@ // Copyright (C) 2010 Christian M Zmasek // Copyright (C) 2010 Sanford-Burnham Medical Research Institute // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -15,13 +15,13 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // 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 abstract class MsaInferrer { + + public abstract String getErrorDescription(); + + public abstract int getExitCode(); + + public static boolean isInstalled( final String path_to_prg ) { + return SystemCommandExecutor.isExecuteableFile( new File( path_to_prg ) ); + } - public String getErrorDescription(); + @Override + public Object clone() { + throw new NoSuchMethodError(); + } - public int getExitCode(); + public abstract Msa infer( File path_to_input_seqs, List opts ) throws IOException, InterruptedException; - public 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; }