Assigning and Defining Sub Processes ​
In the simulation of dynamic models, all referenced sub processes in the Dynamic model must refer to existing sub processes . (When using hierarchical Static models, the organisational units in the Static model must refer to existing sub models.)
Sub processes enable you to keep your dynamic models clearly structured or to reuse models.
ADOxx supports the following proceedings to model process models through the assignment and definition of sub processes in referenced sub process models:
The assignment of sub processes is done using a reference attribute (e.g. "called process"), into which you will add a reference to a model. This reference attribute will be appropriately defined in the application library.
Hint
Using sub processes will help you make your models more readable. Whenever you model sub processes, take care to design them in such a way that they are self-contained parts of the whole model. You should also use sub processes when describing routine or common processes, so that a common process need only to be modelled once ("re-usability").
Hint
ADOxx also allows recursive calls when processes are assigned to an object of the class "Subprocess", i.e. a process may call itself. Before you use such a construction, check it thoroughly. It is essential to have a suitable condition for exiting a recursive loop. When a recursive process call occurs, the system will therefore ask you, if you really want the process to call itself.