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





Description

Determines time of global minimum or maximum of specified scalar calculation. Determination is performed within interval list using Sampling and Convergence parameters.

Object Model





Public Properties

Public Property Calculation The scalar calculation.
Public Property Convergence A Convergence definition, which uses time tolerance to determine when time of extremum is found.
Public Property CustomTimeLimits A custom interval list or a single interval. By default it is set to overall availability of host object. This determines time limits within which global minimum or maximum is sought. The time limits will be used if UseCustomTimeLimits is set to true.
Public Property ExtremumType The extremum type (either minimum or maximum) for the time instant.
Public Property Sampling A Sampling definition, which can use a fixed step, relative tolerance or curvature tolerance. Relative tolerance uses a combination of relative and absolute changes in scalar values between samples. Curvature tolerance also uses changes in slope between samples.
Public Property SaveDataOption Determines if computed time of extremum is saved/loaded, otherwise it is recomputed on load if necessary.
Public Property UseCustomTimeLimits Specify whether to use specified custom interval list (see CustomTimeLimits).

Example

Create and configure extremum event.
[C#] Copy Code
IAgCrdnEvent timeEvent = provider.Events.Factory.CreateEventExtremum("MyEventExtremum""MyDescription"); 
IAgCrdnEventExtremum asExtremum = timeEvent as IAgCrdnEventExtremum; 
 
// For instance, time at highest altitude 
asExtremum.Calculation = provider.CalcScalars["GroundTrajectory.Detic.LLA.Altitude"]; 
asExtremum.ExtremumType = AgECrdnExtremumConstants.eCrdnExtremumMaximum; 
 
IAgCrdnEventFindOccurrenceResult occurrence = timeEvent.FindOccurrence(); 
if (occurrence.IsValid) 

    Console.WriteLine("Event occurred at: " + occurrence.Epoch); 

 

Create and configure extremum event.
[Visual Basic .NET] Copy Code
Dim timeEvent As IAgCrdnEvent = provider.Events.Factory.CreateEventExtremum("MyEventExtremum", "MyDescription")
Dim asExtremum As IAgCrdnEventExtremum = TryCast(timeEvent, IAgCrdnEventExtremum)

' For instance, time at highest altitude
asExtremum.Calculation = provider.CalcScalars("GroundTrajectory.Detic.LLA.Altitude")
asExtremum.ExtremumType = AgECrdnExtremumConstants.eCrdnExtremumMaximum

Dim occurrence As IAgCrdnEventFindOccurrenceResult = timeEvent.FindOccurrence()
If occurrence.IsValid Then
    Console.WriteLine("Event occurred at: " + occurrence.Epoch)
End If

CoClasses that Implement IAgCrdnEventExtremum

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1