AGI STK VGT 11 Send comments on this topic.
IAgCrdnEventIntervalCollection Interface
Windows






Windows & Linux

Description

A collection of related interval lists.

Object Model



Public Methods

Public Method FindIntervalCollectionReturn computed collection of interval lists.
Public Method OccurredDetermine if specified time falls within any of the computed interval lists in the collection.

Public Properties

Public Property LabelsGet the labels associated with the interval lists in the collection.
Public Property TypeReturn the type of collection of interval lists.

Example

Determine if epoch occurred in interval collection.
[C#]Copy Code
IAgCrdnEventIntervalCollection intervalVectorCollection = provider.EventIntervalCollections["LightingIntervals"]; 
 
IAgCrdnEventIntervalCollectionOccurredResult occurredResult = intervalVectorCollection.Occurred("1 May 2015 04:30:00.000"); 
 
if (occurredResult.IsValid) 

    Console.WriteLine("Occurred at {0} index", occurredResult.Index); 
 
    // Use the index from IAgCrdnEventIntervalCollectionOccurredResult as the index to IAgCrdnIntervalsVectorResult.IntervalCollections 
    IAgCrdnIntervalsVectorResult intervalResult = intervalVectorCollection.FindIntervalCollection(); 
    IAgCrdnIntervalCollection intervalCollection = intervalResult.IntervalCollections[occurredResult.Index]; 

 

Determine if epoch occurred in interval collection.
[Visual Basic .NET]Copy Code
Dim intervalVectorCollection As IAgCrdnEventIntervalCollection = provider.EventIntervalCollections("LightingIntervals")

Dim occurredResult As IAgCrdnEventIntervalCollectionOccurredResult = intervalVectorCollection.Occurred("1 May 2015 04:30:00.000")

If occurredResult.IsValid Then
    Console.WriteLine("Occurred at {0} index", occurredResult.Index)

    ' Use the index from IAgCrdnEventIntervalCollectionOccurredResult as the index to IAgCrdnIntervalsVectorResult.IntervalCollections
    Dim intervalResult As IAgCrdnIntervalsVectorResult = intervalVectorCollection.FindIntervalCollection()
    Dim intervalCollection As IAgCrdnIntervalCollection = intervalResult.IntervalCollections(occurredResult.Index)
End If

CoClasses that Implement IAgCrdnEventIntervalCollection

© 2018 Analytical Graphics, Inc. All Rights Reserved.