public void AddPredicate(BooleanExpressionTree predicate) { if (!_model._predicates.ContainsKey(predicate)) { if ((predicate.Name != null) && _model.Predicates.Any(bet => bet.Name == predicate.Name)) { throw new ArgumentException("Boolean expression '" + predicate.Name + "' already exists in the model."); } _model._predicates.Add(predicate, predicate); } }
public void SetPredicate(BooleanExpressionTree predicate) { _event.Predicate = predicate; }
public ConstraintInfo(String name, BooleanExpressionTree predicate) { Name = name; Predicate = predicate; }
public ConstraintInfo(BooleanExpressionTree predicate) { Name = String.Empty; Predicate = predicate; }