1 /* Copyright (c) 2009 Peter Troshin
\r
3 * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0
\r
5 * This library is free software; you can redistribute it and/or modify it under the terms of the
\r
6 * Apache License version 2 as published by the Apache Software Foundation
\r
8 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
\r
9 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache
\r
10 * License for more details.
\r
12 * A copy of the license is in apache_license.txt. It is also available here:
\r
13 * @see: http://www.apache.org/licenses/LICENSE-2.0.txt
\r
15 * Any republication or derived work distributed in source code form
\r
16 * must include this copyright and license notice.
\r
19 package compbio.engine.client;
\r
21 import java.util.List;
\r
23 import compbio.metadata.Limit;
\r
24 import compbio.metadata.LimitsManager;
\r
25 import compbio.metadata.ResultNotAvailableException;
\r
28 * Interface to a native executable.
\r
34 public interface Executable<T> {
\r
41 * Adds parameter to the list of parameters for a native executable
\r
44 * @return this Executable
\r
46 Executable<T> addParameters(List<String> parameters);
\r
48 // TODO remove absolute
\r
50 List<String> getCreatedFiles();
\r
58 CommandBuilder<T> getParameters(ExecProvider provider);
\r
60 <V> V getResults(String directory) throws ResultNotAvailableException;
\r
62 Executable<?> loadRunConfiguration(RunConfiguration rconfig);
\r
64 Limit<T> getLimit(String presetName);
\r
66 LimitsManager<T> getLimits();
\r
68 String getClusterJobSettings();
\r