AGI STK VGT 11 Send comments on this topic.
FindTimes Method (IAgCrdnEventArray)
See Also  Example





Description

Return computed array of times.

Syntax

[Visual Basic .NET]
Public Function FindTimes() As IAgCrdnFindTimesResult

[C#]
public IAgCrdnFindTimesResult FindTimes();

[Managed C++]
public: IAgCrdnFindTimesResult^ FindTimes();

[Java]
public IAgCrdnFindTimesResult findTimes();

[Unmanaged C++]
public: HRESULT FindTimes(
IAgCrdnFindTimesResult ** ReturnValue
);

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 < numTimes
        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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1