Esempio n. 1
0
        IBaseNode IDecisionTree.GetVariableByReference(string reference)
        {
            List <IBaseNode> variables = IDecisionTreeInterface.GetVariables();

            foreach (IBaseNode node in variables)
            {
                if (node.Reference == reference)
                {
                    return(node);
                }
            }

            return(null);
        }
Esempio n. 2
0
        IBaseNode IDecisionTree.GetVariableByName(string name)
        {
            List <IBaseNode> variables = IDecisionTreeInterface.GetVariables();

            foreach (IBaseNode node in variables)
            {
                if (node.Name == name)
                {
                    return(node as IVariableDef);
                }
            }

            return(null);
        }