AGI STK VGT 11 Send comments on this topic.
CreateEventIntervalListCondition Method (IAgCrdnEventIntervalListFactory)
See Also  Example
Name
Description





Description

Create an interval list containing intervals during which specified condition is satisfied.

Syntax

[Visual Basic .NET]
Public Function CreateEventIntervalListCondition( _
   ByVal Name As String, _
   ByVal Description As String _
) As IAgCrdnEventIntervalList

[C#]
public IAgCrdnEventIntervalList CreateEventIntervalListCondition(
string Name,
string Description
);

[Managed C++]
public: IAgCrdnEventIntervalList^ CreateEventIntervalListCondition(
String __gc ^ Name,
String __gc ^ Description
);

[Java]
public IAgCrdnEventIntervalList createEventIntervalListCondition(
String Name,
String Description
);

[Unmanaged C++]
public: HRESULT CreateEventIntervalListCondition(
BSTR Name,
BSTR Description,
IAgCrdnEventIntervalList ** ReturnValue
);

Parameters

Name
Description

Remarks

Spaces and most punctuation ( except for "-_().") cannot be used as a part of a component name when creating new components via VGT API.

Example

Create and configure list condition event interval.
[C#] Copy Code
IAgCrdnEventIntervalList intervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListCondition("MyIntervalListSatisfaction",  "MyDescription"); 
IAgCrdnEventIntervalListCondition asListCondition = intervalList as IAgCrdnEventIntervalListCondition; 
 
asListCondition.Condition = provider.Conditions["AfterStart"]; 
 
IAgCrdnIntervalListResult intervals = intervalList.FindIntervals(); 
if (intervals.IsValid) 

    foreach (IAgCrdnInterval interval in intervals.Intervals) 
    { 
        Console.WriteLine("Start: " + interval.Start); 
        Console.WriteLine("Stop: " + interval.Stop); 
    } 

 

Create and configure list condition event interval.
[Visual Basic .NET] Copy Code
Dim intervalList As IAgCrdnEventIntervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListCondition("MyIntervalListSatisfaction", "MyDescription")
Dim asListCondition As IAgCrdnEventIntervalListCondition = TryCast(intervalList, IAgCrdnEventIntervalListCondition)

asListCondition.Condition = provider.Conditions("AfterStart")

Dim intervals As IAgCrdnIntervalListResult = intervalList.FindIntervals()
If intervals.IsValid Then
    For Each interval As IAgCrdnInterval In intervals.Intervals
        Console.WriteLine("Start: " + interval.Start)
        Console.WriteLine("Stop: " + interval.[Stop])
    Next
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1