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





Description

The factory creates condition components.

Object Model



Public Methods

Public Method Create Creates and registers a condition using specified name, description and type.
Public Method CreateConditionScalarBounds Creates a condition placing bounds on specified scalar.
Public Method IsTypeSupported Returns 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

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1