Exemple #1
0
    public Fuzzy.Operator GetOperatorFromConditionExpression(int conditionIndex, int expressionIndex)
    {
        _currentOperator = Fuzzy.Operator.END;
        try
        {
            _currentOperator = operatorList[conditionIndex][expressionIndex];
        }
        catch (System.ArgumentOutOfRangeException)
        {
            Debug.LogError("@" + GetType() + " - Index exception. Invalid index for condition or expression list");
        }

        return(_currentOperator);
    }
Exemple #2
0
    public Fuzzy.Operator SetOperatorForCunrrentConditionExpression(int conditionIndex, int expressionIndex, Fuzzy.Operator op)
    {
        try
        {
            operatorList[conditionIndex][expressionIndex] = op;

            _currentOperator = 0;
            _currentOperator = op;
        }
        catch (System.ArgumentOutOfRangeException)
        {
            Debug.LogError("@" + GetType() + " - Index exception. Invalid index for condition or expression list");
        }

        return(_currentOperator);
    }
Exemple #3
0
    public Fuzzy.Operator AddOperatorInCurrentConditionExpressionList(int conditionIndex, Fuzzy.Operator op)
    {
        operatorList[conditionIndex].Add(op);

        return(_currentOperator = op);
    }