Beispiel #1
0
 public bool SatisfiesFormula(Formula formula)
 {
     VariableCollection variable = _expressionContext.Variables;
     foreach (var statu in _status)
     {
         variable.Add(statu.Key.ToString() , statu.Value);
     }
     bool eval = _expressionContext.CompileGeneric<bool>(formula.Expression).Evaluate();
     variable.Clear();
     return eval;
 }
Beispiel #2
0
 public void InitializeFormula()
 {
     Formula = new Formula();
 }