Initializes the execution time for functions and rules
Inheritance: DataDictionary.Generated.Visitor
Ejemplo n.º 1
0
        /// <summary>
        ///     Sets up the runner before performing a test case
        /// </summary>
        public void Setup()
        {
            Util.DontNotify(() =>
            {
                // Clears all caches
                FinderRepository.INSTANCE.ClearCache();
                EfsSystem.Instance.ClearFunctionCache();

                // Setup the execution environment
                Setuper setuper = new Setuper();
                ExecutionTimeInitializer executionTimeInitializer = new ExecutionTimeInitializer();
                foreach (Dictionary dictionary in EfsSystem.Instance.Dictionaries)
                {
                    setuper.visit(dictionary);
                    executionTimeInitializer.visit(dictionary);
                }

                // Setup the step
                if (SubSequence != null)
                {
                    Expression expression = SubSequence.Frame.CycleDuration;
                    // ReSharper disable once UnusedVariable
                    IValue value = expression.GetExpressionValue(new InterpretationContext(SubSequence.Frame), null);
                }

                PleaseWait = false;
            });
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Terminates the execution of a run
        /// </summary>
        public void EndExecution()
        {
            ExecutionTimeInitializer initializer = new ExecutionTimeInitializer();

            foreach (Dictionary dictionary in EfsSystem.Instance.Dictionaries)
            {
                initializer.visit(dictionary);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Sets up the runner before performing a test case
        /// </summary>
        public void Setup()
        {
            Util.DontNotify(() =>
            {
                // Clears all caches
                FinderRepository.INSTANCE.ClearCache();
                EfsSystem.Instance.ClearFunctionCache();

                // Setup the execution environment
                Setuper setuper = new Setuper();
                ExecutionTimeInitializer executionTimeInitializer = new ExecutionTimeInitializer();
                foreach (Dictionary dictionary in EfsSystem.Instance.Dictionaries)
                {
                    setuper.visit(dictionary);
                    executionTimeInitializer.visit(dictionary);
                }

                // Setup the step
                if (SubSequence != null)
                {
                    Expression expression = SubSequence.Frame.CycleDuration;
                    IValue value = expression.GetExpressionValue(new InterpretationContext(SubSequence.Frame), null);
                    Step = Functions.Function.GetDoubleValue(value);
                }

                PleaseWait = false;
            });
        }
Ejemplo n.º 4
0
 /// <summary>
 ///     Terminates the execution of a run
 /// </summary>
 public void EndExecution()
 {
     ExecutionTimeInitializer initializer = new ExecutionTimeInitializer();
     foreach (Dictionary dictionary in EfsSystem.Instance.Dictionaries)
     {
         initializer.visit(dictionary);
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Terminates the execution of a run
 /// </summary>
 public void EndExecution()
 {
     ExecutionTimeInitializer initializer = new ExecutionTimeInitializer();
     foreach (Dictionary dictionary in EFSSystem.INSTANCE.Dictionaries)
     {
         initializer.visit(dictionary);
     }
 }