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





Description

Return computed interval list that can be empty.

Syntax

[Visual Basic .NET]
Public Function FindIntervals() As IAgCrdnIntervalListResult

[C#]
public IAgCrdnIntervalListResult FindIntervals();

[Managed C++]
public: IAgCrdnIntervalListResult^ FindIntervals();

[Java]
public IAgCrdnIntervalListResult findIntervals();

[Unmanaged C++]
public: HRESULT FindIntervals(
IAgCrdnIntervalListResult ** ReturnValue
);

Example

Determines the event intervals contained in the interval list.
[C#] Copy Code
IAgCrdnEventIntervalList intervalsList = provider.EventIntervalLists["AttitudeIntervals"]; 
 
IAgCrdnIntervalListResult intervals = intervalsList.FindIntervals(); 
 
if (intervals.IsValid) 

    Console.WriteLine("Intervals:"); 
    foreach (IAgCrdnInterval interval in intervals.Intervals) 
    { 
        Console.WriteLine("Interval Start: " + interval.Start); 
        Console.WriteLine("Interval Stop: " + interval.Stop); 
    } 

 

Determines the event intervals contained in the interval list.
[Visual Basic .NET] Copy Code
Dim intervalsList As IAgCrdnEventIntervalList = provider.EventIntervalLists("AttitudeIntervals")

Dim intervals As IAgCrdnIntervalListResult = intervalsList.FindIntervals()

If intervals.IsValid Then
    Console.WriteLine("Intervals:")
    For Each interval As IAgCrdnInterval In intervals.Intervals
        Console.WriteLine("Interval Start: " + interval.Start)
        Console.WriteLine("Interval Stop: " + interval.[Stop])
    Next
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1