IBaseNode IDecisionTree.GetVariableByReference(string reference) { List <IBaseNode> variables = IDecisionTreeInterface.GetVariables(); foreach (IBaseNode node in variables) { if (node.Reference == reference) { return(node); } } return(null); }
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); }