Linking variables, block parameters, and block output fields
One of the facilities provided by the Event Modeler is the linking of:
Block output fields to scenario variables
This creates a relationship between an output field of a block and a scenario variable. Once set up, Event Modeler automatically updates the value of the variable to the value of the output field. If the output field changes, the variable’s value immediately reflects the new value of the block output field.
If the field and the variable are not of the same type, Event Modeler converts the field’s value to the type of the variable before it updates the variable. If the conversion is not possible, Event Modeler assigns a default value to the variable. See
Conversion rules for variable types for more information.
If the variable is of auto-type, it inherits the type of the block output field.
After you link a block output field to a scenario variable, you can still explicitly modify the value of the scenario variable. If you do, keep in mind that Event Modeler will continue to update the value of the scenario variable each time the value of the linked block output field changes. Consequently, after you link a block output field to a scenario variable, the recommendation is that you do not explicitly modify the value of that scenario variable.
Scenario variables or
block output fields to block parameters This creates a relationship between a scenario variable or block output field and a block parameter. Once set up, Event Modeler automatically updates the value of the block parameter to the value of the scenario variable. If the value of the scenario variable or block output field changes, the value of the linked block parameter immediately changes to reflect the new value.
If the variable or field and the parameter are of different types, Event Modeler converts the variable’s value or the output field’s value to the type of the parameter before updating the value of the parameter. If the conversion is not possible, Event Modeler assigns a default value. See
Conversion rules for variable types for more information.
After you link a scenario variable or block output field to a block parameter, you can still explicitly modify the value of the block parameter. If you do, keep in mind that Event Modeler will continue to update the value of the block parameter each time the value of the linked scenario variable or block output field changes. Consequently, after you link a scenario variable or block output field to a block parameter, the recommendation is that you do not explicitly modify the value of that block parameter.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.