Пример #1
0
        public void PropagateAssert(IExecutionContext context, Tuple tuple)
        {
            var wrapperFact = new WrapperFact(tuple);

            context.WorkingMemory.SetFact(wrapperFact);
            Sink.PropagateAssert(context, wrapperFact);
        }
Пример #2
0
        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);
            }
        }
Пример #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);
            }
        }
Пример #4
0
        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);
            }
        }