STK Vector Geometry ToolSend comments on this topic.
Occurred Method (IAgCrdnEventIntervalList)
See Also
Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.
Windows





Windows & Linux

Description

Determine if specified time falls within computed interval list.

Syntax

[Visual Basic .NET]
Public Function Occurred( _
    ByVal Epoch As System.Object _
) As Boolean
[C#]
public bool Occurred(
    System.Object Epoch
);
[Managed C++]
public: bool Occurred(
    VARIANT Epoch
);
[Unmanaged C++]
public: HRESULT Occurred(
    VARIANT Epoch,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool occurred(
    AgVariant Epoch
);
[Python - STK API ]
def Occurred(self, Epoch:typing.Any) -> bool:

Parameters

Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.

See Also

Example

Determine if epoch occurred in interval collection.
[C#]
IAgCrdnEventIntervalList intervalList = provider.EventIntervalLists["AttitudeIntervals"];

// The reference event you want to determine if event of interest happened before.
IAgCrdnEvent timeEvent = provider.Events["GroundTrajectory.Detic.LLA.Altitude.TimeOfMin"];
IAgCrdnEventFindOccurrenceResult occurrence = timeEvent.FindOccurrence();

if (intervalList.Occurred(occurrence.Epoch))
{
    Console.WriteLine("The time of maximum altitude occurred in event interval list.");
}
else
{
    Console.WriteLine("The time of maximum altitude did not occurred in event interval list.");
}
Determine if epoch occurred in interval collection.
[Visual Basic .NET]
Dim intervalList As IAgCrdnEventIntervalList = provider.EventIntervalLists("AttitudeIntervals")

' The reference event you want to determine if event of interest happened before.
Dim timeEvent As IAgCrdnEvent = provider.Events("GroundTrajectory.Detic.LLA.Altitude.TimeOfMin")
Dim occurrence As IAgCrdnEventFindOccurrenceResult = timeEvent.FindOccurrence()

If intervalList.Occurred(occurrence.Epoch) Then
	Console.WriteLine("The time of maximum altitude occurred in event interval list.")
Else
	Console.WriteLine("The time of maximum altitude did not occurred in event interval list.")
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.