Exemplo n.º 1
0
        private IAggregator CreateAggregator(Tuple tuple)
        {
            var aggregator = _aggregatorFactory.Create();

            tuple.SetState(this, aggregator);
            return(aggregator);
        }
Exemplo n.º 2
0
        private IFactAggregator CreateFactAggregator(Tuple tuple)
        {
            var aggregator     = _aggregatorFactory.Create();
            var factAggregator = new FactAggregator(aggregator);

            tuple.SetState(this, factAggregator);
            return(factAggregator);
        }
Exemplo n.º 3
0
        private IFactAggregator CreateFactAggregator(IExecutionContext context, Tuple tuple)
        {
            var aggregator     = _aggregatorFactory.Create();
            var factAggregator = new FactAggregator(aggregator);

            context.WorkingMemory.SetState(this, tuple, factAggregator);
            return(factAggregator);
        }
Exemplo n.º 4
0
        private IAggregator CreateAggregator(IExecutionContext context, Tuple tuple)
        {
            var aggregator = _aggregatorFactory.Create();

            tuple.SetState(this, aggregator);
            var results = aggregator.Initial();

            HandleAggregationResult(context, results, tuple);
            return(aggregator);
        }