예제 #1
0
        public void ResumeFatigueTest(FatigueTest fatigueTest)
        {
            _currentTest = fatigueTest;
            _currentTest.Start();
            OnTestStarted(_currentTest);

            // this starts the test running
            Singleton.TurnOn();
        }
예제 #2
0
        /// <summary>
        ///     Gets a new instance of the test type associated with the template.
        /// </summary>
        /// <returns></returns>
        public TorqueTest TestInstance()
        {
            if (!_templateLoaded)
            {
                throw new Exception("Test template is not loaded.  Must first call Load() method.");
            }

            TorqueTest t = null;

            switch (_id)
            {
            case (int)TestType.SteeringShaftTest_4000_inlbs:
                Load();
                t = new FullyReversedTorqueTest();
                t.TestTemplateId = Id;
                t.LoadTestParameters(this);
                break;

            case (int)TestType.TorsionTestToFailure:
                Load();
                t = new UnidirectionalTorqueTest();
                t.TestTemplateId = Id;
                t.LoadTestParameters(this);
                break;

            case (int)TestType.FatigueTest:
                Load();
                t = new FatigueTest();
                t.TestTemplateId = Id;
                t.LoadTestParameters(this);
                break;

            default:
                throw new Exception("Unsupported test type");
            }

            return(t);
        }
예제 #3
0
 public void PauseFatigueTest(FatigueTest fatigueTest)
 {
     // return to zero
 }