AGI STK Objects 11Send comments on this topic.
ExecSingleElementsArray Method (IAgDataPrvTimeVar)
See Also  Example
TimeArray
ElementNames
Windows






Windows & Linux

Description

Computes the data given a single Time array and return just the indicated data elements. SingleTime uses DateFormat Dimension.

Syntax

[Visual Basic .NET]
Public Function ExecSingleElementsArray( _
   ByRef TimeArray As System.Array, _
   ByRef ElementNames As System.Array _
) As IAgDrTimeArrayElements
[C#]
public IAgDrTimeArrayElements ExecSingleElementsArray(
   ref System.Array TimeArray,
   ref System.Array ElementNames
);
[Managed C++]
public: IAgDrTimeArrayElements^ ExecSingleElementsArray(
   System::Array ^^ TimeArray,
   System::Array ^^ ElementNames
);
[Java]
public IAgDrTimeArrayElements execSingleElementsArray(
   Object[] TimeArray,
   Object[] ElementNames
);
[Unmanaged C++]
public: HRESULT ExecSingleElementsArray(
   SAFEARRAY ** TimeArray,
   SAFEARRAY ** ElementNames,
   IAgDrTimeArrayElements ** ReturnValue
);

Parameters

TimeArray
ElementNames

Example

Execute a time dependent data provider and returning the specified elements at the specified time
[C#]Copy Code
Array times = new object[] 
              { 
                  "1 Jan 2012 12:00:00.000""1 Jan 2012 12:00:20.000"
                  "1 Jan 2012 12:00:40.000" 
              }; 
Array elems = new object[] 
              { 
                  "Time"
                  "Precision Pass Number" 
              }; 
 
IAgDataPrvTimeVar dp = satellite.DataProviders["Precision Passes"as IAgDataPrvTimeVar; 
 
// ExecSingleElementsArray expects each safe array parameter to be one dimensional, 
// all arrays must have the same length 
IAgDrTimeArrayElements resInfo = dp.ExecSingleElementsArray(ref times, ref elems); 
 

Execute a time dependent data provider and returning the specified elements at the specified time
[Visual Basic .NET]Copy Code
Dim times As Array = New Object() {"1 Jan 2012 12:00:00.000", "1 Jan 2012 12:00:20.000", "1 Jan 2012 12:00:40.000"}
Dim elems As Array = New Object() {"Time", "Precision Pass Number"}

Dim dp As IAgDataPrvTimeVar = TryCast(satellite.DataProviders("Precision Passes"), IAgDataPrvTimeVar)

' ExecSingleElementsArray expects each safe array parameter to be one dimensional,
' all arrays must have the same length
Dim resInfo As IAgDrTimeArrayElements = dp.ExecSingleElementsArray(times, elems)

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.