Figures 8.4 and 8.5 show the task level LISP code which implements the presentation integration of the batch-mode application VORONOI.
The function (vochck ...) is called whenever a parameter value
in the control panel is changed, to verify and react to non-trivial
interdependencies of parameters. No action is required for VORONOI
as the parameters are orthogonal, but older tools (like, e.g., the
process simulator PROMIS) may exhibit enormously complex
interdependencies of control keys. The option to check the validity
and range of key values before the simulator is started can help to
avoid unsuccessful simulator runs.
When the command button is pressed in the tool control panel,
the expression
(voronoi "tough.pbf" "tough3" "outfile.pbf" "voro3" :og "Delagrid" :mg NIL :int T :bh T :ow NIL :of NIL :wg T :vdb NIL )will be evaluated. This triggers the execution of the application VORONOI with all corresponding arguments in the background.
The entire task and presentation level integration of VORONOI, consisting of the virtual tool interface (Figure 8.3) and the interactive tool control panel (Figure 8.5) has been accomplished in less than 4 hours, including several test runs.