docs.unity3d.com
    Show / Hide Table of Contents

    Class CombinedCondition

    Class CombinedCondition.

    Inheritance
    Object
    MultiItemCondition
    CombinedCondition
    Inherited Members
    MultiItemCondition.Operator
    MultiItemCondition.negated
    Namespace: Unity.Industrial.Forma.Core.Ruling
    Syntax
    [MovedFrom(true, "UnityEngine.Industrial.Configuring.Core.Ruling", "Unity.Industrial.Configurator", null)]
    [Serializable]
    [Obsolete("Use ExpressionCondition class instead.")]
    public class CombinedCondition : MultiItemCondition, IMultiOperatorCondition, IRuleCondition

    Constructors

    CombinedCondition()

    Initializes a new instance of the CombinedCondition class.

    Declaration
    public CombinedCondition()

    Properties

    Conditions

    Gets the conditions.

    Declaration
    public IReadOnlyList<IRuleCondition> Conditions { get; }
    Property Value
    Type Description
    IReadOnlyList<IRuleCondition>

    The conditions.

    Methods

    Add(IRuleCondition)

    Adds the specified condition.

    Declaration
    public bool Add(IRuleCondition condition)
    Parameters
    Type Name Description
    IRuleCondition condition

    The condition.

    Returns
    Type Description
    Boolean

    true Rule was added false Rule was not added because it would create a cycle.

    Applies(RuleExecutionContext)

    Applieses the specified context.

    Declaration
    public override bool Applies(RuleExecutionContext context)
    Parameters
    Type Name Description
    RuleExecutionContext context

    The context.

    Returns
    Type Description
    Boolean

    trueRule is activefalse Rule is inactive.

    Overrides
    MultiItemCondition.Applies(RuleExecutionContext)
    Implements
    IRuleCondition.Applies(RuleExecutionContext)

    ClearEmptyChildren()

    Clears the empty children.

    Declaration
    public void ClearEmptyChildren()

    GetIndicesInTree(IRuleCondition)

    Get the position of a specific condition in the rule tree.

    Declaration
    public int[] GetIndicesInTree(IRuleCondition targetRuleCondition)
    Parameters
    Type Name Description
    IRuleCondition targetRuleCondition

    Condition to be found.

    Returns
    Type Description
    Int32[]

    Array of indices containing the tree path that leads to this condition.

    GetOperator(IRuleCondition)

    Get Operator for condition

    Declaration
    public Operator GetOperator(IRuleCondition condition)
    Parameters
    Type Name Description
    IRuleCondition condition

    ICondition

    Returns
    Type Description
    Operator

    Operatpr

    Insert(Int32, IRuleCondition)

    Inserts the specified index.

    Declaration
    public bool Insert(int index, IRuleCondition condition)
    Parameters
    Type Name Description
    Int32 index

    The index.

    IRuleCondition condition

    The condition.

    Returns
    Type Description
    Boolean

    true Rule insertedfalseRule not inserted because it would create a cycle.

    Remove(IRuleCondition)

    Removes the specified condition.

    Declaration
    public bool Remove(IRuleCondition condition)
    Parameters
    Type Name Description
    IRuleCondition condition

    The condition.

    Returns
    Type Description
    Boolean

    true if the remove operation succeeded false otherwise.

    RemoveAt(Int32)

    Removes the specified condition.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index

    SetAt(Int32, IRuleCondition)

    Sets at.

    Declaration
    public bool SetAt(int index, IRuleCondition condition)
    Parameters
    Type Name Description
    Int32 index

    The index.

    IRuleCondition condition

    The condition.

    Returns
    Type Description
    Boolean

    trueRule was set.falseRuleCondition was either null or would create a cycle if added..

    SetOperator(IRuleCondition, Operator)

    Set Operator for condition

    Declaration
    public void SetOperator(IRuleCondition condition, Operator op)
    Parameters
    Type Name Description
    IRuleCondition condition

    ICondition

    Operator op

    Operator

    ToString()

    ToString

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    string

    Overrides
    Object.ToString()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023