Specifying initialization parameters for a configuration

About this task

To specify which instances to initialize and whether to generate code for actors, on the tab:

  • Initial instances adds code to the main program to instantiate only those packages, classes, and actors that you specify. The possible values are as follows:
    • Explicit instantiates only the selected elements.
    • Derived instantiates the selected elements and any others to which these are related, either directly or indirectly.

      For example, if class A is selected, and class B is related to A, B is added to the derived scope. If C is related to B, C is also added to the derived scope, and so on.

      Two elements are related if there is a dependency or relation between them, use types of the other element, or use events defined in the other element.

  • Generate Code For Actors generates code for the actors specified in the Initial Instances box.
  • Initialization code where you type any user code you want to use to instantiate initial instances or to initialize any other elements. This code is added to the main program after any automatically generated initialization code and before the main program loop.