view m-toolbox/classes/@LTPDAworkbench/executeReadyBlocks.m @ 50:7d2e2e065cf1 database-connection-manager

Update unit tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:24:37 +0100
parents f0afece42f48
children
line wrap: on
line source

% EXECUTEREADYBLOCKS executes the current ready blocks.
%
% CALL:          wb.executeReadyBlocks
%         cmds = wb.executeReadyBlocks % returns a cell-array of executed
%                                      % commands
%
% M Hewitson 13-11-08
%
% $Id: executeReadyBlocks.m,v 1.7 2010/08/06 19:10:49 ingo Exp $
%
function varargout = executeReadyBlocks(wb)
  
  [cmds, rbs] = wb.parseReadyBlocks();
  
  LTPDAworkbench.executeCommands(wb, cmds);
  
  if nargout > 0
    varargout{1} = cmds;
    varargout{2} = rbs;
  end
  
end