Esempio n. 1
0
 public ContextControllerInitTermBase(
     ContextControllerInitTermFactory factory,
     ContextManagerRealization realization)
     : base(factory, realization)
 {
     initTermSvc = ContextControllerInitTermUtil.GetService(factory);
 }
Esempio n. 2
0
 public ContextControllerInitTerm(
     ContextControllerInitTermFactory factory,
     ContextManagerRealization realization)
 {
     this.factory = factory;
     this.realization = realization;
 }
 public ContextControllerInitTermNonOverlap(
     ContextControllerInitTermFactory factory,
     ContextManagerRealization realization)
     : base(
         factory,
         realization)
 {
 }
        public static ContextControllerInitTermSvc GetService(ContextControllerInitTermFactory factory)
        {
            if (factory.FactoryEnv.IsRoot) {
                return new ContextControllerInitTermSvcLevelOne();
            }

            return new ContextControllerInitTermSvcLevelAny();
        }
Esempio n. 5
0
        public ContextControllerInitTermOverlap(
            ContextControllerInitTermFactory factory,
            ContextManagerRealization realization)
            : base(factory, realization)

        {
            if (factory.InitTermSpec.DistinctEval != null) {
                if (factory.FactoryEnv.NumNestingLevels == 1) {
                    distinctSvc = new ContextControllerInitTermDistinctSvcNonNested();
                }
                else {
                    distinctSvc = new ContextControllerInitTermDistinctSvcNested();
                }

                eventsPerStreamDistinct = new EventBean[1];
                distinctLastTriggerEvents = new LRUCache<object, EventBean>(16);
            }
            else {
                distinctSvc = null;
                distinctLastTriggerEvents = null;
                eventsPerStreamDistinct = null;
            }
        }