IMsMetaModelVisualController.AddFactor

Fore Syntax

AddFactor(Model: IMsModel;
          EntryKey: Integer;
          GraphMeta: String;
          Var InterVariableKey: Integer;
          Var InterModelKey: Integer;
          Index: Integer;
          [InterParentKey: Integer = -1]): Boolean;

Fore.NET Syntax

AddFactor(Model: Prognoz.Platform.Interop.Ms.IMsModel;
          EntryKey: integer;
          GraphMeta: string;
          var InterVariableKey: integer;
          var InterModelKey: integer;
          Index: integer;
          InterParentKey: uinteger): boolean;

Parameters

Model. Internal model.

EntryKey. Key of the factor to be added.

GraphMeta. Graphical context.

InterVariableKey. Key of a intermediate variable.

InterModelKey. The key of the transitional model of interpolation/collapse.

Index. The parameter determining whether to add new factor to the model or to copy the existing one.

InterParentKey. Parent key of intermediate variable and intermediate model of interpolation/collapse.

Description

The AddFactor method adds the factor to the internal model.

Comments

The GraphMeta parameter can take the Null value.

Values of the InterVariableKey and InterModelKey parameters are returned by the method after execution if frequencies of the model and added factor are different.

To add new factor in the model, the Index parameter must take -1 value. To copy the existing factor, specify its index in the Index parameter.

If the InterParentKey parameter is set to -1, the intermediate variable and model are added to the metamodel root.

Fore and Fore.NET Examples

The method use is given in the example for IMsMetaModelVisualController.HasVariableRubricator.

See also:

IMsMetaModelVisualController