Exemplo n.º 1
0
        public void PropagateRetract(IExecutionContext context, ITupleFactList tupleFactList)
        {
            if (tupleFactList.Count == 0)
            {
                return;
            }
            IBetaMemory memory     = context.WorkingMemory.GetNodeMemory(this);
            var         toRetract  = new List <Tuple>();
            var         enumerator = tupleFactList.GetEnumerator();

            while (enumerator.MoveNext())
            {
                Tuple childTuple = memory.FindTuple(enumerator.CurrentTuple, enumerator.CurrentFact);
                if (childTuple != null)
                {
                    toRetract.Add(childTuple);
                }
            }

            PropagateRetractInternal(context, memory, toRetract);
        }
Exemplo n.º 2
0
 public void PropagateRetract(IExecutionContext context, ITupleFactList tupleFactList)
 {
     //Do nothing
 }