STK Vector Geometry ToolSend comments on this topic.
CreateEventIntervalListTimeOffset Method (IAgCrdnEventIntervalListFactory)
See Also
Name
Description
Windows





Windows & Linux

Description

Create an interval list defined by shifting the specified reference interval list by a fixed time offset.

Syntax

[Visual Basic .NET]
Public Function CreateEventIntervalListTimeOffset( _
    ByVal Name As String, _
    ByVal Description As String _
) As IAgCrdnEventIntervalList
[C#]
public IAgCrdnEventIntervalList CreateEventIntervalListTimeOffset(
    string Name,
    string Description
);
[Managed C++]
public: IAgCrdnEventIntervalList^ CreateEventIntervalListTimeOffset(
    String __gc ^ Name,
    String __gc ^ Description
);
[Unmanaged C++]
public: HRESULT CreateEventIntervalListTimeOffset(
    BSTR Name,
    BSTR Description,
    IAgCrdnEventIntervalList ** ppRetVal
);
[Java]
public IAgCrdnEventIntervalList createEventIntervalListTimeOffset(
    String Name,
    String Description
);
[Python - STK API ]
def CreateEventIntervalListTimeOffset(self, Name:str, Description:str) -> "IAgCrdnEventIntervalList":

Parameters

Name
Description

See Also

Example

Create and configure time offset event interval list.
[C#]
IAgCrdnEventIntervalList intervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListTimeOffset("MyIntervalListFixedTimeOffset",  "MyDescription");
IAgCrdnEventIntervalListTimeOffset asTimeOffset = intervalList as IAgCrdnEventIntervalListTimeOffset;

asTimeOffset.ReferenceIntervals = provider.EventIntervalLists["AfterStart.SatisfactionIntervals"];

// Uses current Time unit preference, this code snippet assumes seconds.
asTimeOffset.TimeOffset = 300;

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 time offset event interval list.
[Visual Basic .NET]
Dim intervalList As IAgCrdnEventIntervalList = provider.EventIntervalLists.Factory.CreateEventIntervalListTimeOffset("MyIntervalListFixedTimeOffset", "MyDescription")
Dim asTimeOffset As IAgCrdnEventIntervalListTimeOffset = TryCast(intervalList, IAgCrdnEventIntervalListTimeOffset)

asTimeOffset.ReferenceIntervals = provider.EventIntervalLists("AfterStart.SatisfactionIntervals")

' Uses current Time unit preference, this code snippet assumes seconds.
asTimeOffset.TimeOffset = 300

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
© 2024 Analytical Graphics, Inc. All Rights Reserved.