AGI STK Objects 11 Send comments on this topic.
IAgDrInterval Interface





Description

Represents a data interval element.

Object Model


Public Methods

Public Method MultipleThresholdCrossings MultipleThresholdCrossings returns an array of two-dimensional arrays. Each two-dimensional array contains start and stop times based on the boundaries passed in. The DataSets property must contain the Time dataset for this method to work correctly.
Public Method ThresholdCrossings ThresholdCrossings returns a two-dimensional array containing time and direction data (negative for decreasing). The DataSets property must contain the Time dataset for this method to work correctly.

Public Properties

Public Property DataSets Returns a collection of data sets within the interval.
Public Property StartTime Returns the start time of the interval. Uses DateFormat Dimension.
Public Property StopTime Returns the stop time of the interval. Uses DateFormat Dimension.

Example

Extract data from IAgDrIntervalCollection (generic)
[C#] Copy Code
// Enumerate IAgDrIntervalCollection collection 
foreach (IAgDrInterval interval in intervals) 

    Console.WriteLine("{0} - {1}", interval.StartTime, interval.StopTime); 
 
    foreach (IAgDrDataSet dataset in interval.DataSets) 
    { 
        Array values = dataset.GetValues(); 
 
        Console.WriteLine("{0}", dataset.ElementName); 
 
        foreach (object value in values) 
        { 
            Console.WriteLine("\t{0}", value.ToString()); 
        } 
    } 

 

Extract data from IAgDrIntervalCollection (generic)
[Visual Basic .NET] Copy Code
' Enumerate IAgDrIntervalCollection collection
For Each interval As IAgDrInterval In intervals
    Console.WriteLine("{0} - {1}", interval.StartTime, interval.StopTime)

    For Each dataset As IAgDrDataSet In interval.DataSets
        Dim values As Array = dataset.GetValues()

        Console.WriteLine("{0}", dataset.ElementName)

        For Each value As Object In values
            Console.WriteLine(vbTab & "{0}", value.ToString())
        Next
    Next
Next

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1