public void PropagateAssert(IExecutionContext context, Tuple tuple)
        {
            var wrapperFact = new WrapperFact(tuple);

            context.WorkingMemory.SetFact(wrapperFact);
            Sink.PropagateAssert(context, wrapperFact);
        }
        public void PropagateAssert(IExecutionContext context, Tuple tuple)
        {
            var wrapperFact = new WrapperFact(tuple);

            context.WorkingMemory.SetInternalFact(this, wrapperFact);
            foreach (var sink in _sinks)
            {
                sink.PropagateAssert(context, wrapperFact);
            }
        }
Exemple #3
0
        public void PropagateAssert(IExecutionContext context, IList <Tuple> tuples)
        {
            var toAssert = new List <Fact>(tuples.Count);

            foreach (var tuple in tuples)
            {
                var wrapperFact = new WrapperFact(tuple);
                tuple.SetState(this, wrapperFact);
                toAssert.Add(wrapperFact);
            }
            foreach (var sink in _sinks)
            {
                sink.PropagateAssert(context, toAssert);
            }
        }
        public void PropagateAssert(IExecutionContext context, List <Tuple> tuples)
        {
            var toAssert = new List <Fact>(tuples.Count);

            using (var counter = PerfCounter.Assert(context, this))
            {
                foreach (var tuple in tuples)
                {
                    var wrapperFact = new WrapperFact(tuple);
                    context.WorkingMemory.SetState(this, tuple, wrapperFact);
                    toAssert.Add(wrapperFact);
                }
                counter.AddItems(tuples.Count);
            }

            foreach (var sink in _sinks)
            {
                sink.PropagateAssert(context, toAssert);
            }
        }