IMsFillGapsTransform.Explained

Syntax

Explained: IMsFormulaTerm;

Description

The Explained property returns output series.

Example

Executing the example requires that the repository contains a modeling container with the MODEL_SPACE identifier. A model with the MODEL identifier is created in this container. This model uses the missing data treatment method in calculations.

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

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Model: IMsModel;
    Trans: IMsFormulaTransform;
    VarTrans: IMsFormulaTransformVariable;
    Tree: IMsFormulaTransformSlicesTree;
    Slice: IMsFormulaTransformSlice;
    Selector: IMsFormulaTransformSelector;
    Formula: IMsFormula;
    FillGaps: IMsFillGapsTransform;
    Calc: IMsModelCalculation;
    Exp: Array Of Double;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemByIdNamespace("MODEL", MB.ItemById("MODEL_SPACE").Key).Edit;
    Model := MObj As IMsModel;
    Trans := Model.Transform;
    VarTrans := Trans.Outputs.Item(0);
    Tree := VarTrans.SlicesTree(VarTrans);
    Slice := Tree.CreateSlice(1);
    Selector := Model.Transform.CreateSelector;
    Selector.Slice := Slice;
    Formula := Model.Transform.Transform(Selector);
    FillGaps := Formula.Method As IMsFillGapsTransform;
    Calc := Model.CreateCalculation;
    Calc.Period.IdentificationStartDate := DateTime.ComposeDay(19900101);
    Calc.Period.IdentificationEndDate := DateTime.ComposeDay(20001231);
    Calc.Period.ForecastStartDate := DateTime.ComposeDay(20010101);
    Calc.Period.ForecastEndDate := DateTime.ComposeDay(20100101);
    Exp := FillGaps.Explained.Serie(Calc As IMsMethodCalculation);
    For i := 0 To Exp.Length - 1 Do
        Debug.WriteLine(Exp[i]);
    End For;
End Sub UserProc;

After executing the example, the output series of a model is obtained. Output series values are displayed in the development environment console.

See also:

IMsFillGapsTransform