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





Description

Interval defined between two explicitly specified start and stop times. Stop date/time is required to be at or after start.

Public Methods

Public Method SetInterval Set interval's start and stop times.

Public Properties

Public Property StartTime The start time of the interval.
Public Property StopTime The stop time of the interval.

Example

Create and configure fixed event interval.
[C#] Copy Code
IAgCrdnEventInterval eventInterval = provider.EventIntervals.Factory.CreateEventIntervalFixed("MyIntervalFixed",  "MyDescription"); 
IAgCrdnEventIntervalFixed asFixed = eventInterval as IAgCrdnEventIntervalFixed; 
 
asFixed.SetInterval( 
    provider.Events["AvailabilityStartTime"].FindOccurrence().Epoch, 
    provider.Events["AvailabilityStopTime"].FindOccurrence().Epoch); 
 
IAgCrdnEventIntervalResult intervalResult = eventInterval.FindInterval(); 
if (intervalResult.IsValid) 

    Console.WriteLine("Interval Start: " + intervalResult.Interval.Start); 
    Console.WriteLine("Interval Stop: " + intervalResult.Interval.Stop); 

 

Create and configure fixed event interval.
[Visual Basic .NET] Copy Code
Dim eventInterval As IAgCrdnEventInterval = provider.EventIntervals.Factory.CreateEventIntervalFixed("MyIntervalFixed", "MyDescription")
Dim asFixed As IAgCrdnEventIntervalFixed = TryCast(eventInterval, IAgCrdnEventIntervalFixed)

asFixed.SetInterval(provider.Events("AvailabilityStartTime").FindOccurrence().Epoch, provider.Events("AvailabilityStopTime").FindOccurrence().Epoch)

Dim intervalResult As IAgCrdnEventIntervalResult = eventInterval.FindInterval()
If intervalResult.IsValid Then
    Console.WriteLine("Interval Start: " + intervalResult.Interval.Start)
    Console.WriteLine("Interval Stop: " + intervalResult.Interval.[Stop])
End If

CoClasses that Implement IAgCrdnEventIntervalFixed

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1