STK ObjectsSend comments on this topic.
IAgDataPrvInterval Interface

Description

Represents the Interval Data Provider (for instance facility lighting times).

Public Methods

Public Method ExecCompute the data; interval data providers require an interval or list of intervals. StartTime/StopTime use DateFormat Dimension.
Public Method ExecElementsCompute the data and return just the indicated data elements; interval data providers require an interval or list of intervals. StartTime/StopTime use DateFormat Dimension.
Public Method ExecElementsEventArrayCompute the data and returns just the indicated data elements; Input is a Times Array component, and object start and stop times. Start/Stop use DateFormat Dimension.
Public Method ExecEventArrayCompute the data given a Times Array component. Also requires object start and stop times, which use DateFormat Dimension.

Interfaces

CoClasses that Implement IAgDataPrvInterval

Example

Execute an interval data provider (for instance access times) and returning all elements
[C#]
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 only the specified elements
[C#]
IAgStkAccess access = satellite.GetAccessToObject(areatarget) as IAgStkAccess;
access.ComputeAccess();

IAgDataPrvInterval dp = access.DataProviders["Access Data"] as IAgDataPrvInterval;

Array elems = new object[]
              {
                  "Start Time",
                  "Stop Time",
                  "Access Number",
                  "From Pass Number",
                  "To Pass Number",
                  "From Start Alt",
                  "From Stop Alt"
              };

// ExecElements expects the third parameter to be a one dimensional array of element names
IAgDrResult resInfo = dp.ExecElements(
    "1 Jan 2012 12:00:00.000",
    "2 Jan 2012 12:00:00.000",
    ref elems);
Execute an interval data provider (for instance access times) and returning all elements
[Visual Basic .NET]
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")
Execute an interval data provider (for instance access times) and returning only the specified elements
[Visual Basic .NET]
Dim access As IAgStkAccess = TryCast(satellite.GetAccessToObject(areatarget), IAgStkAccess)
access.ComputeAccess()

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

Dim elems As Array = New Object() {"Start Time", "Stop Time", "Access Number", "From Pass Number", "To Pass Number", "From Start Alt", _
	"From Stop Alt"}

' ExecElements expects the third parameter to be a one dimensional array of element names
Dim resInfo As IAgDrResult = dp.ExecElements("1 Jan 2012 12:00:00.000", "2 Jan 2012 12:00:00.000", elems)

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.