AGI STK Objects 11 Send comments on this topic.
Exec Method (IAgDataPrvTimeVar)
See Also  Example
StartTime
The start time.
StopTime
The stop time.
StepTime
The step value.





Description

Compute the data; time-dependent data providers require an interval and a time step. Start/Stop use DateFormat Dimension. StepTime uses Time Dimension.

Syntax

[Visual Basic .NET]
Public Function Exec( _
   ByVal StartTime As System.Object, _
   ByVal StopTime As System.Object, _
   ByVal StepTime As Double _
) As IAgDrResult

[C#]
public IAgDrResult Exec(
System.Object StartTime,
System.Object StopTime,
double StepTime
);

[Managed C++]
public: IAgDrResult^ Exec(
VARIANT StartTime,
VARIANT StopTime,
double StepTime
);

[Java]
public IAgDrResult exec(
Variant StartTime,
Variant StopTime,
double StepTime
);

[Unmanaged C++]
public: HRESULT Exec(
VARIANT StartTime,
VARIANT StopTime,
double StepTime,
IAgDrResult ** ReturnValue
);

Parameters

StartTime
The start time.
StopTime
The stop time.
StepTime
The step value.

Return Type

IAgDrResult.

Example

Execute a time dependent data provider and request all elements for the specified time interval
[C#] Copy Code
IAgDataPrvTimeVar dpInfo = facility.DataProviders["Lighting AER"as IAgDataPrvTimeVar; 
IAgDrResult resInfo = dpInfo.Exec( 
    "1 Jan 2012 12:00:00.000"
    "1 Jan 2012 12:00:20.000"
    60.0); 
 

Execute a time dependent data provider and request all elements for the specified time interval
[Visual Basic .NET] Copy Code
Dim dpInfo As IAgDataPrvTimeVar = TryCast(facility.DataProviders("Lighting AER"), IAgDataPrvTimeVar)
Dim resInfo As IAgDrResult = dpInfo.Exec("1 Jan 2012 12:00:00.000", "1 Jan 2012 12:00:20.000", 60)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1