AGI STK VGT 11 Send comments on this topic.
IAgCrdnFindTimesResult Interface





Description

Returns a collection of intervals and an array of times.

Object Model


Public Properties

Public Property Intervals A collection of found intervals.
Public Property IsValid Indicates whether the result object is valid.
Public Property Start The start time of the entire interval span.
Public Property Stop The stop time of the entire interval span.
Public Property Times An array of found times.

Example

Determines the time intervals of an event array.
[C#] Copy Code
IAgCrdnEventArray eventArray = provider.EventArrays["Orbit.Classical.SemimajorAxis.TimesOfLocalMax"]; 
 
IAgCrdnFindTimesResult foundTimes = eventArray.FindTimes(); 
if (foundTimes.IsValid) 

    Console.WriteLine("Times"); 
    int numTimes = foundTimes.Times.GetLength(0); 
    for (int i = 0; i < numTimes; ++i) 
    { 
        Console.WriteLine(foundTimes.Times.GetValue(i)); 
    } 
 
    foreach (IAgCrdnInterval timeArray in foundTimes.Intervals) 
    { 
        Console.WriteLine("Start: " + timeArray.Start); 
        Console.WriteLine("Stop: " + timeArray.Stop); 
    } 

 

Determines the time intervals of an event array.
[Visual Basic .NET] Copy Code
Dim eventArray As IAgCrdnEventArray = provider.EventArrays("Orbit.Classical.SemimajorAxis.TimesOfLocalMax")

Dim foundTimes As IAgCrdnFindTimesResult = eventArray.FindTimes()
If foundTimes.IsValid Then
    Console.WriteLine("Times")
    Dim numTimes As Integer = foundTimes.Times.GetLength(0)
    Dim i As Integer = 0
    While i <>
        Console.WriteLine(foundTimes.Times.GetValue(i))
        System.Threading.Interlocked.Increment(i)
    End While

    For Each timeArray As IAgCrdnInterval In foundTimes.Intervals
        Console.WriteLine("Start: " + timeArray.Start)
        Console.WriteLine("Stop: " + timeArray.[Stop])
    Next
End If

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1