#include <SimCase.h>
Inheritance diagram for SimCase::

Public Methods | |
| SimCase () | |
| virtual | ~SimCase () |
| virtual void | adm (MenuSystem &menu) |
| void | attach (MenuSystem &menu) |
| MenuSystem& | getMenuSystem () |
| virtual void | solveProblem () |
| virtual void | openReport () |
| virtual void | resultReport () |
| virtual void | closeReport () |
| int | getMultipleLoopLimit () |
| int | getMultipleLoopIndex () |
Protected Attributes | |
| Handle(MenuSystem) | menu_system |
NAME: SimCase - user dependent. code for standard menu functions in classes
DESCRIPTION:
Class "SimCase" represents the user''s problem dependent code that is needed when using the menu tool "MenuSystem". In fact, "SimCase" is only required when one applies the multiple loop functionality of class "MenuSystem". For further documentation, see the classes "MenuSystem" and "MultipleReporter" and H.P. Langtangen, "Computational Partial Differential Equations", Springer-Verlag, 1999.
|
|
The constructor takes no arguments. No further initialization is required. |
|
|
|
|
|
administrates the define, prompt and scan steps when using the menu system. The menu object that was used for these steps is available as "menu_system". (For interested users, the "menu_system" variable is needed for (1) flexible reading of menu answers at any time in a simulator, and (2) monitoring the multiple loop from the simulator object. Then the "menu_system" object must be properly initialized. This is done in "adm", and hence "adm" must always be written in a simulator. Note that "adm" is automatically called by "MenuSystem multipleLoop"). |
|
|
|
|
|
closes files etc that were opened in "openReport". (ML) |
|
|
|
|
|
returns the current combination (simulation, execution) number in a multiple loop. This information is gained from class "MenuSystem". (ML) |
|
|
returns the number of combinations in a multiple loop, or in other words, the number of simulations that is implied by the the multiple menu answers. This information is gained from class "MenuSystem". (ML) |
|
|
aimed at opening files, etc. that are used by "resultReport". (ML) |
|
|
to be called right after "solveProblem" in order to report on the results of a single execution in tabular form. See also class "MultipleReporter" or class "Reporter". (ML) |
|
|
required in multiple loops for executing a single problem for one given combination of the menu answers. (ML) |
|
|
|