IdentificationEndDate: 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 the value 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 with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database that contains the calculated series should be loaded to UiErAnalyzer1. Before executing the example select one calculated series in the LanerBox1 component.
The example is a handler of the OnClick event for the Button1 component.
Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
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.
See also: