AGI STK VGT 11 Send comments on this topic.
IAgCrdnConditionFactory Interface
Windows






Windows & Linux

Description

The factory creates condition components.

Object Model




Public Methods

Public Method CreateCreates and registers a condition using specified name, description and type.
Public Method CreateConditionCombinedCreates multiple conditions on specified scalar.
Public Method CreateConditionScalarBoundsCreates a condition placing bounds on specified scalar.
Public Method IsTypeSupportedReturns whether the specified type is supported.

Example

Create a condition defined by determining if input scalar is within specified bounds.
[C#]Copy Code
//Create a condition from a scalar. 
IAgCrdnConditionScalarBounds condition = (IAgCrdnConditionScalarBounds)provider.Conditions.Factory.Create( 
    "ConditionName""Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds); 
 

Determine if the specified condition type is supported.
[C#]Copy Code
// Check if the specified condition type is supported. 
if (provider.Conditions.Factory.IsTypeSupported(conditionType)) 

    //Create a Condition with the supported Type 
    IAgCrdnCondition condition = provider.Conditions.Factory.Create( 
        "MyCondition"string.Empty, 
        conditionType); 

 

Create a condition defined by determining if input scalar is within specified bounds.
[Visual Basic .NET]Copy Code
'Create a condition from a scalar.
Dim condition As IAgCrdnConditionScalarBounds = DirectCast(provider.Conditions.Factory.Create("ConditionName", "Condition from a scalar.", AgECrdnConditionType.eCrdnConditionTypeScalarBounds), IAgCrdnConditionScalarBounds)

Determine if the specified condition type is supported.
[Visual Basic .NET]Copy Code
' Check if the specified condition type is supported.
If provider.Conditions.Factory.IsTypeSupported(conditionType) Then
    'Create a Condition with the supported Type
    Dim condition As IAgCrdnCondition = provider.Conditions.Factory.Create("MyCondition", String.Empty, conditionType)
End If

© 2018 Analytical Graphics, Inc. All Rights Reserved.