예제 #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;
 }