diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 14:54:14 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 14:54:14 +0100 |
commit | 97e3942191e1ab8f084ba8da475749a9609c37aa (patch) | |
tree | 0e22ae5d3e1349aa1186893cf3be23111704fd82 /lib/algorithm.rb | |
parent | 1db377c898a49417c669a52aaf75014f6a31158f (diff) |
add percentage completed support
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r-- | lib/algorithm.rb | 5 |
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 |