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





Description

Event is either start or stop time selected from a reference interval.

Object Model


Public Properties

Public Property ReferenceEventInterval The reference interval.
Public Property UseStart Indicates whether to use start (true) or stop (false).

Example

Create and configure start stop time event.
[C#] Copy Code
IAgCrdnEvent timeEvent = provider.Events.Factory.CreateEventStartStopTime("MyEventStartStopTime""MyDescription"); 
IAgCrdnEventStartStopTime asStartStopTime = timeEvent as IAgCrdnEventStartStopTime; 
 
asStartStopTime.ReferenceEventInterval = provider.EventIntervals["EphemerisTimeSpan"]; 
 
asStartStopTime.UseStart = true
 
IAgCrdnEventFindOccurrenceResult occurrence = timeEvent.FindOccurrence(); 
if (occurrence.IsValid) 

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

 

Create and configure start stop time event.
[Visual Basic .NET] Copy Code
Dim timeEvent As IAgCrdnEvent = provider.Events.Factory.CreateEventStartStopTime("MyEventStartStopTime", "MyDescription")
Dim asStartStopTime As IAgCrdnEventStartStopTime = TryCast(timeEvent, IAgCrdnEventStartStopTime)

asStartStopTime.ReferenceEventInterval = provider.EventIntervals("EphemerisTimeSpan")

asStartStopTime.UseStart = True

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

CoClasses that Implement IAgCrdnEventStartStopTime

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1