summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
index 0aa86e6..58a2640 100644
--- a/lib/algorithm.rb
+++ b/lib/algorithm.rb
@@ -13,9 +13,10 @@ module OpenTox
# Execute algorithm with parameters, please consult the OpenTox API and the webservice documentation for acceptable parameters
# @param [optional,Hash] params Algorithm parameters
+ # @param [optional,OpenTox::Task] waiting_task (can be a OpenTox::Subtask as well), progress is updated accordingly
# @return [String] URI of new resource (dataset, model, ...)
- def run(params=nil)
- RestClientWrapper.post(@uri, {:accept => 'text/uri-list'}, params).to_s
+ def run(params=nil, waiting_task=nil)
+ RestClientWrapper.post(@uri, {:accept => 'text/uri-list'}, params, waiting_task).to_s
end
# Get OWL-DL representation in RDF/XML format