STK Vector Geometry ToolSend comments on this topic.
CreateEventExtremum Method (IAgCrdnEventFactory)
See Also
Name
Description
Windows





Windows & Linux

Description

Creates an event that determines the time of global minimum or maximum of specified scalar calculation.

Syntax

[Visual Basic .NET]
Public Function CreateEventExtremum( _
    ByVal Name As String, _
    ByVal Description As String _
) As IAgCrdnEvent
[C#]
public IAgCrdnEvent CreateEventExtremum(
    string Name,
    string Description
);
[Managed C++]
public: IAgCrdnEvent^ CreateEventExtremum(
    String __gc ^ Name,
    String __gc ^ Description
);
[Unmanaged C++]
public: HRESULT CreateEventExtremum(
    BSTR Name,
    BSTR Description,
    IAgCrdnEvent ** ppRetVal
);
[Java]
public IAgCrdnEvent createEventExtremum(
    String Name,
    String Description
);
[Python - STK API ]
def CreateEventExtremum(self, Name:str, Description:str) -> "IAgCrdnEvent":

Parameters

Name
Description

See Also

Example

Create and configure extremum event.
[C#]
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]
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
© 2024 Analytical Graphics, Inc. All Rights Reserved.