public void ResumeFatigueTest(FatigueTest fatigueTest) { _currentTest = fatigueTest; _currentTest.Start(); OnTestStarted(_currentTest); // this starts the test running Singleton.TurnOn(); }
/// <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); }
public void PauseFatigueTest(FatigueTest fatigueTest) { // return to zero }