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
See Also
Example
Determine if epoch occured 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 occured 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
|
|