IRubricatorInstance.LoadValidationRun

Syntax

LoadValidationRun(ExecData: IValidationExecData; Selection: IValidationExecSelection): IValidationExecRun;

Parameters

ExecData - data of validation calculation.

Selection - selection, by which data of validation calculation must be obtained.

Description

The LoadValidationRun method extracts data of validation calculation by the specified selection.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier. The time series database must include factors with the 12195999 and 12196000 keys, and validation calculation with the 1 key.

Sub Main;

Var

MB: IMetabase;

RubInst: IRubricatorInstance;

ValiRun: IValidationExecRun;

ValidSel: IValidationExecSelection;

ValiData: IValidationExecData;

Mat: IMatrix;

It: IMatrixIterator;

Arr: Array[0..1] Of Integer;

Begin

MB := MetabaseClass.Active;

RubInst := MB.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;

ValiData := RubInst.GetValidationExecData(1, DictionaryGetDataOptions.None);

Arr[0] := 12195999;

Arr[1] := 12196000;

ValidSel := New ValidationExecSelection.CreateFactors(Null, Arr);

ValiRun := RubInst.LoadValidationRun(ValiData, ValidSel);

Mat := ValiRun.Matrix;

It := Mat.CreateIterator;

It.Move(IteratorDirection.First);

While It.Valid Do

Debug.WriteLine(It.Value);

It.Move(IteratorDirection.Next);

End While;

End Sub Main;

After executing the example data of validation calculation with the 1 key for the specified factors is displayed in the console window, if this data exists.

See also:

IRubricatorInstance