IdentificationEndDate: DateTime;
IdentificationEndDate: System.DateTime;
The IdentificationEndDate property determines the end date of sample period.
The property value affects the forecast start date, that is the forecast start date is calculated as the end date of sample period plus one period.
Simultaneous use of the IdentificationEndDate and ILanerTransformPeriod.ForecastStartDate properties is not allowed.
The property value can be changed if ILanerTransformPeriod.PeriodSet contains value of LnTransformPeriodSet.IdentificationEndDate or LnTransformPeriodSet.All. That is why the ILanerTransformPeriod.PeriodSet value needs to be set before changing the IdentificationEndDate value.
If the property value is not set, the end date of sample period is determined by the ILanerTransformPeriod.IdentificationEndDateParamId property.
If the IdentificationEndDate and ILanerTransformPeriod.IdentificationEndDateParamId properties are set, the end date of sample period is determined by the last set property.
Executing the example requires a form containing:
A button with the Button1 identifier.
The LanerBox component with the LanerBox1 identifier.
The UiErAnalyzer component with the UiErAnalyzer1 identifier being the data source for the LanerBox1. UiErAnalyzer1 must contain the workbook of the time series database that contains the calculated series.
Example is a handler of the OnClick event for the button.
Run the form, select only one calculated series in the workbook and click on the Button1 button. The following procedure is executed:
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Analyzer: IEaxAnalyzer;
pLaner: ILaner;
pSeries: ILanerCalculateSerie;
TransPeriod: ILanerTransformPeriod;
Begin
Analyzer := UiErAnalyzer1.ErAnalyzer;
pLaner := Analyzer.Laner;
pLaner.BeginUpdate;
pSeries := LanerBox1.SelectedSeries(0) As ILanerCalculateSerie;
TransPeriod := pSeries.TransformPeriod;
TransPeriod.AutoPeriod := TransformModelAutoPeriodOptions.None;
TransPeriod.PeriodSet := LnTransformPeriodSet.All;
TransPeriod.StartDate := DateTime.Parse("01.01.2000");
TransPeriod.IdentificationEndDate := DateTime.Parse("31.12.2010");
TransPeriod.EndDate := DateTime.Parse("01.01.2020");
pLaner.EndUpdate;
End Sub Button1OnClick;
After executing the example the following Options are set for the selected calculated series:
Sample period start: 01.01.2000.
Sample period end: 31.12.2010.
Forecast period end: 01.01.2020.
Executing this example requires a .NET form containing:
A button with the Button1 identifier.
The LanerBoxNet component with the lanerBoxNet1 identifier.
The UiErAnalyzerNet component with the uiErAnalyzerNet1 identifier being the data source for lanerBoxNet1. uiErAnalyzerNet1 must contain the workbook of the time series database that contains the calculated series.
Example is a handler of the Click event for the button. Run the form, select only one calculated series in the workbook and click on the button1 button. The following procedure is executed:
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Laner;
Imports Prognoz.Platform.Interop.Cubes;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Analyzer: IEaxAnalyzer;
pLaner: ILaner;
pSeries: ILanerCalculateSerie;
TransPeriod: ILanerTransformPeriod;
Begin
Analyzer := uiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
pLaner := Analyzer.Laner;
pLaner.BeginUpdate();
pSeries := lanerBoxNet1.SelectedSeries[0] As ILanerCalculateSerie;
TransPeriod := pSeries.TransformPeriod;
TransPeriod.AutoPeriod := TransformModelAutoPeriodOptions.tmapoNone;
TransPeriod.PeriodSet := LnTransformPeriodSet.ltpsAll;
TransPeriod.StartDate := DateTime.Parse("01.01.2000");
TransPeriod.IdentificationEndDate := DateTime.Parse("31.12.2010");
TransPeriod.EndDate := DateTime.Parse("01.01.2020");
pLaner.EndUpdate();
End Sub;
Results of Fore.NET example execution match with those of the Fore example.
See also: