diff m-toolbox/classes/@LTPDAworkbench/stepForward.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/classes/@LTPDAworkbench/stepForward.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,21 @@
+% STEPFORWARD execute current ready blocks and step forward one step in
+% current pipeline.
+%
+% CALL:  wb.stepForward
+%
+% M Hewitson 13-11-08
+%
+% $Id: stepForward.m,v 1.7 2010/08/06 19:10:49 ingo Exp $
+%
+function stepForward(varargin)
+  
+  wb = varargin{1};
+  [cmds, rbs] = wb.executeReadyBlocks;
+  awtinvoke(wb.mp, 'stepForwardCurrentPipeline');
+  awtinvoke(wb.mp, 'updateProgressOfCurrentDiagram');
+  wb.executing = true;
+  % Now we can check the source blocks for the last set of executed
+  % blocks in case we want to clear some variables
+  LTPDAworkbench.clearBlockVariables(rbs);
+  
+end