AGI STK Objects 11 Send comments on this topic.
Exec Method (IAgDataPrvInterval)
See Also  Example
StartTime
The start time of the interval.
StopTime
The stop time of the interval.





Description

Compute the data; interval data providers require an interval or list of intervals. StartTime/StopTime use DateFormat Dimension.

Syntax

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

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

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

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

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

Parameters

StartTime
The start time of the interval.
StopTime
The stop time of the interval.

Return Type

IAgDrResult.

Example

Execute an interval data provider (for instance access times) and returning all elements
[C#] Copy Code
IAgStkAccess Access = satellite.GetAccessToObject(areatarget) as IAgStkAccess; 
Access.ComputeAccess(); 
 
IAgDataPrvInterval dpInfo = Access.DataProviders["Access Data"as IAgDataPrvInterval; 
 
IAgDrResult resInfo = dpInfo.Exec( 
    "1 Jan 2012 12:00:00.000"
    "2 Jan 2012 12:00:00.000"); 
 

Execute an interval data provider (for instance access times) and returning all elements
[Visual Basic .NET] Copy Code
Dim Access As IAgStkAccess = TryCast(satellite.GetAccessToObject(areatarget), IAgStkAccess)
Access.ComputeAccess()

Dim dpInfo As IAgDataPrvInterval = TryCast(Access.DataProviders("Access Data"), IAgDataPrvInterval)

Dim resInfo As IAgDrResult = dpInfo.Exec("1 Jan 2012 12:00:00.000", "2 Jan 2012 12:00:00.000")

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1