InitCtrl (EventController)

Syntax

<Path>.InitCtrl:method

The attribute InitCtrl designates a Method object. Plant Simulation calls this control once at the beginning of the simulation run during the init phase before the objects are initialized and before init methods are executed.

Data Type of the Value You Can Assign

You can assign a value of data type method.

Example

EventController.InitCtrl := &myInitControl
-- The source code of an init control might look like this:
MyWorkersTable[2,1] := 2 -- enters the desired amount of the worker John
MyWorkersTable[2,2] := 1 -- enters the desired amount of the worker Nellie WorkerPool.setCreationTable(MyWorkersTable)

Related Topics

Init control

Define How Many Workers Are Created When the Model is Initialized