Пример #1
0
            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);
                }
            }
Пример #2
0
 public void SetPredicate(BooleanExpressionTree predicate)
 {
     _event.Predicate = predicate;
 }
Пример #3
0
 public ConstraintInfo(String name, BooleanExpressionTree predicate)
 {
     Name      = name;
     Predicate = predicate;
 }
Пример #4
0
 public ConstraintInfo(BooleanExpressionTree predicate)
 {
     Name      = String.Empty;
     Predicate = predicate;
 }