Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
14.3.2
14.3.2
The description of the plugins (e.g. PMP, EPP etc..) in the GUI panel informs you about its scope of application and this should be accordingly considered when you define your scenario.

In order to prevent the plugins from reporting physically wrong results the validity of actual parameter values are checked during the calculations (Figure 317). In case parameter values exceed the valid range, appropriate exceptions, e.g. RuntimeException, stops the plugin from doing further calculations.

Anchor
F317
F317
Figure 317: RuntimeException checker in the calculation codes

...

For this, each type of plugins provides the same method consistencyCheck() to perform the recommended checks: 

Anchor
F318
F318
Figure 318: Common method to perform checks

...

In order to avoid conflicts on the consistency check it is therefore very important that all default instances of the plugin types are checked, for instance like this for a PMP:

Anchor
F319
F319
Figure 319: Example of a PMP checking for the default instances

...

In case you apply nested plugins it is highly recommended to check the validity of these nested plugins inside the consistency check of your 'parent' plugin. The below example of an EPP which uses a nested PMP wants only to show the principle of checking input parameters:

Anchor
F320
F320
Figure 320: Example of checking the validity of a nested plugin

...