AGI STK VGT 11 Send comments on this topic.
HasCyclicDependency Method (IAgCrdnAngleRefTo)
See Also  Example
Angle
Specify a valid angle object.





Description

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

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
   ByVal Angle As IAgCrdnAngle _
) As Boolean

[C#]
public bool HasCyclicDependency(
IAgCrdnAngle Angle
);

[Managed C++]
public: bool HasCyclicDependency(
IAgCrdnAngle ^ Angle
);

[Java]
public bool hasCyclicDependency(
IAgCrdnAngle Angle
);

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

Parameters

Angle
Specify a valid angle object.

Example

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

    Console.WriteLine("The angle {0} has a cyclic dependency on angle {1}.", ((IAgCrdn)angleRefTo.GetAngle()).Name, ((IAgCrdn)angle).Name); 

 

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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1