Exemplo n.º 1
0
        internal static LogicalRow CreateFromVariablesValues(LogicalReport report, LogicalGrammarResult result, List <LogicalVariable> variables)
        {
            var logicalRow = new LogicalRow(report);

            logicalRow.VariablesValues = variables.Select(variable => variable.Value).ToList();
            logicalRow.Result          = result.LogicalOperation.GetValue();
            return(logicalRow);
        }
Exemplo n.º 2
0
 private void PopulateFromVariables(LogicalGrammarResult result, List <LogicalVariable> variables, int i = 0)
 {
     if (i == variables.Count)
     {
         Rows.Add(LogicalRow.CreateFromVariablesValues(this, result, variables));
         return;
     }
     variables[i].Value = false;
     PopulateFromVariables(result, variables, i + 1);
     variables[i].Value = true;
     PopulateFromVariables(result, variables, i + 1);
 }