Пример #1
0
 public OrTransaction(OrString input)
 {
     this.Transactions = new List <AndTransaction>();
     foreach (var a in input.List)
     {
         Transactions.Add(new AndTransaction(a));
     }
 }
Пример #2
0
        public Predicate(OrString value)
        {
            Value           = value;
            Subpredicates   = new List <Predicate>();
            FilterTargets   = new List <FilterAtom>();
            ProtocolTargets = new List <ProtocolAtom>();
            Layer           = 0;

            foreach (var atom in Value.List.SelectMany(and => and.List))
            {
                StoreAtom(atom);
            }
        }
Пример #3
0
 public SubPredicateAtom(OrString predicate)
 {
     Predicate = new Predicate(predicate);
     AtomType  = PredicateAtomType.SubPredicate;
 }
Пример #4
0
 public PredicateTransaction(OrString predicate, PredicateWriteTransaction transaction)
 {
     this.Transaction = transaction;
     this.Predicate   = new OrTransaction(predicate);
 }