AGI STK Objects 11 Send comments on this topic.
IAgDataProvider Interface
Windows






Windows & Linux

Description

Represents the Sub Data Provider (i.e. "Fixed" in "Cartesian Position" group on satellites, or "Cartesian Position" on facilities).

Object Model


Public Properties

Public Property AllowUIWhen set to true the data provider will display a user interface to select/enter the pre-data required.
Public Property ElementsReturns a collection of elements associated with a DataProvider or a SubDataProvider.
Public Property IsValidReturns whether the data provider is valid.
Public Property PreDataThe string associated with the current PreData parameter.

Example

Execute a time dependent group data provider which uses preData and returning the specified elements
[C#]Copy Code
Array elems = new object[] 
"Time""x""y""z" }; 
IAgDataProviderGroup dpVectorChoose = satObj.DataProviders["Vector Choose Axes"as IAgDataProviderGroup; 
IAgDataProvider groupPosition = dpVectorChoose.Group["Position"as IAgDataProvider; 
groupPosition.PreData = "Satellite/Sat2 Body"
IAgDataPrvTimeVar timeVarDP = groupPosition as IAgDataPrvTimeVar; 
IAgDrResult result = timeVarDP.ExecElements("26 Jan 2015 17:00:00.000""27 Jan 2015 17:00:00.000"120ref elems); 
IAgDrDataSetCollection datasets = result.DataSets; 
 
if (result.DataSets.Count > 0

    System.Array arrayTime = datasets[0].GetValues(); 
    System.Array arrayX = datasets[1].GetValues(); 
    System.Array arrayY = datasets[2].GetValues(); 
    System.Array arrayZ = datasets[2].GetValues(); 

 

Execute a time dependent data provider which uses preData and returning the specified elements
[C#]Copy Code
Array elems = new object[] 
"Range""Radial Rate" }; 
IAgDataPrvTimeVar RICdp = satObj.DataProviders["Relative Motion"as IAgDataPrvTimeVar; 
(RICdp as IAgDataProvider).PreData = "Satellite/Satellite123"
IAgDrResult result = RICdp.ExecElements("26 Jan 2015 17:00:00.000""27 Jan 2015 17:00:00.000"120ref elems); 
IAgDrDataSetCollection datasets = result.DataSets; 
 
if (result.DataSets.Count > 0

    System.Array arrayRange = datasets[0].GetValues(); 
    System.Array arrayRadialRate = datasets[1].GetValues(); 

 

Execute a time dependent group data provider which uses preData and returning the specified elements
[Visual Basic .NET]Copy Code

Execute a time dependent data provider which uses preData and returning the specified elements
[Visual Basic .NET]Copy Code

See Also

CoClasses that Implement IAgDataProvider

© 2018 Analytical Graphics, Inc. All Rights Reserved.