AGI STK VGT 11 Send comments on this topic.
HasCyclicDependency Method (IAgCrdnSystemRefTo)
See Also  Example
System
Specify a valid system object.





Description

Tests whether the input component and the target component form a cyclic dependency.

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
   ByVal System As IAgCrdnSystem _
) As Boolean

[C#]
public bool HasCyclicDependency(
IAgCrdnSystem System
);

[Managed C++]
public: bool HasCyclicDependency(
IAgCrdnSystem ^ System
);

[Java]
public bool hasCyclicDependency(
IAgCrdnSystem System
);

[Unmanaged C++]
public: HRESULT HasCyclicDependency(
IAgCrdnSystem * System,
VARIANT_BOOL * ReturnValue
);

Parameters

System
Specify a valid system object.

Example

Check whether the reference system has a cyclic dependency on another system.
[C#] Copy Code
//Check if the reference system has a cyclic dependency on another system. 
if (systemRefTo.HasCyclicDependency(system)) 

    Console.WriteLine("The system {0} has a cyclic dependency on system {1}.", ((IAgCrdn)systemRefTo.GetSystem()).Name, ((IAgCrdn)system).Name); 

 

Check whether the reference system has a cyclic dependency on another system.
[Visual Basic .NET] Copy Code
'Check if the reference system has a cyclic dependency on another system.
If systemRefTo.HasCyclicDependency(system) Then
    Console.WriteLine("The system {0} has a cyclic dependency on system {1}.", DirectCast(systemRefTo.GetSystem(), IAgCrdn).Name, DirectCast(system, IAgCrdn).Name)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1