IValidationComponent.Factor

Syntax

Factor: IRubricatorFactor;

Description

The Factor property returns a factor.

Comments

Using the Factor property factor data can be obtained.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier that contains the VALID_FILTER validation rule (compares deviations between the output series and source series, on which the output series is based).

It is also necessary to add links to the Metabase, Ms, Cubes system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    RubrDescr: IMetabaseObjectDescriptor;
    Valid: IValidationFilter;
    Date: DateTime;
    SerArr: Array Of Variant;
    i: Integer;
    ValComponent: IValidationComponent;
    Factor: IRubricatorFactor;
Begin
    Mb := MetabaseClass.Active;
    RubrDescr := Mb.ItemById("OBJ_RUBRICATOR");
    Valid := Mb.ItemByIdNamespace("VALID_FILTER", RubrDescr.Key).Bind As IValidationFilter;
    Date := DateTime.ComposeDay(200011);
    SerArr := Valid.GetComponentsByFactor(10024, Date, True);
    If Not isNull(SerArr) And (SerArr.Length > 0Then
        For i := 0 To SerArr.Length - 1 Do
            ValComponent := (SerArr[i] As IValidationComponent);
            Factor := ValComponent.Factor;
            Debug.WriteLine("Component " + i.ToString + " " + Factor.Factor.ToString + "  rev=" + ValComponent.RevisionKey.ToString);
        End For;
    Else
        Debug.WriteLine("No components");
    End If;
End Sub UserProc;

After executing the example the console window displays component series, for which the validation calculation for the time series with the 10024 key was performed.

See also:

IValidationComponent