public void SetUp()
        {
            StatementContext stmtContext = SupportStatementContextFactory.MakeContext(new SchedulingServiceImpl(new TimeSourceServiceImpl()));

            _scheduleService = stmtContext.SchedulingService;
            PatternAgentInstanceContext agentInstanceContext = SupportPatternContextFactory.MakePatternAgentInstanceContext(_scheduleService);

            _quitable = new SupportQuitable(agentInstanceContext);

            _guard = new TimerWithinGuard(1000, _quitable);
        }
        public void SetUp()
        {
            _container = SupportContainer.Reset();
            var stmtContext = SupportStatementContextFactory.MakeContext(
                _container, new SchedulingServiceImpl(new TimeSourceServiceImpl(), _container));

            _scheduleService = stmtContext.SchedulingService;
            var agentInstanceContext = SupportPatternContextFactory.MakePatternAgentInstanceContext(_scheduleService);

            _quitable = new SupportQuitable(agentInstanceContext);

            _guard = new TimerWithinGuard(1000, _quitable);
        }
Exemple #3
0
        public void SetUp()
        {
            _beginState = new MatchedEventMapImpl(new MatchedEventMapMeta(new String[0], false));

            _scheduleService = new SchedulingServiceImpl(new TimeSourceServiceImpl());
            StatementContext stmtContext = SupportStatementContextFactory.MakeContext(_scheduleService);

            _context      = new PatternContext(stmtContext, 1, new MatchedEventMapMeta(new String[0], false), false);
            _agentContext = SupportPatternContextFactory.MakePatternAgentInstanceContext(_scheduleService);

            _evaluator = new SupportObserverEvaluator(_agentContext);

            _observer = new TimerIntervalObserver(1000, _beginState, _evaluator);
        }
        public void SetUp()
        {
            _beginState = new MatchedEventMapImpl(new MatchedEventMapMeta(new String[0], false));

            _scheduleService = new SchedulingServiceImpl(new TimeSourceServiceImpl());
            PatternAgentInstanceContext agentContext = SupportPatternContextFactory.MakePatternAgentInstanceContext(_scheduleService);

            ScheduleSpec scheduleSpec = new ScheduleSpec();

            scheduleSpec.AddValue(ScheduleUnit.SECONDS, 1);

            _evaluator = new SupportObserverEvaluator(agentContext);

            _observer = new TimerAtObserver(scheduleSpec, _beginState, _evaluator);
        }
 public void SetUp()
 {
     _patternContext = SupportPatternContextFactory.MakePatternAgentInstanceContext();
 }