/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mxgstest.sections; import mxgsegse.MXGSEGSE; import mxgstest.MxgsTestException; import mxgstest.Output; import mxgstest.egse.Basic; import mxgstest.egse.Power; import mxgstest.mxgs.Dau; import mxgstest.mxgs.Dpu; import mxgstest.mxgs.Hk; import mxgstest.mxgs.Psu; /** * * @author stet */ public class Section6_05 { MXGSEGSE egse; Output output; public Section6_05(MXGSEGSE egse, Output output) throws Throwable { this.egse = egse; this.output = output; } Dpu dpu = new Dpu(); Power pow = new Power(); Basic bas = new Basic(); Dau dau = new Dau(); Psu psu = new Psu(); Hk hke = new Hk(); public void step6_5_1() throws Throwable { try{ output.printSubSectionStart("6.5.1", "Power Off PSU"); output.printStepStart("6.5.1-1", "Power Off PSU"); pow.powerOffPSU(egse); Thread.sleep(4000); pow.verifySupplyPSU(egse, 0, 0.01); } catch(MxgsTestException e) { output.printStepStatus("6.5.1", false, e.getMessage()); throw e; } output.printStepStatus("6.5.1", true); output.printSubSectionEnd("6.5.1"); } public void step6_5_2() throws Throwable { try{ output.printSubSectionStart("6.5.2", "Power Off DPU"); output.printStepStart("6.5.2-1", "Power Off DPU"); pow.powerOffDPU(egse); Thread.sleep(4000); pow.verifySupplyDPU(egse, 0, 0.01); } catch(MxgsTestException e) { output.printStepStatus("6.5.2", false, e.getMessage()); throw e; } output.printStepStatus("6.5.2", true); output.printSubSectionEnd("6.5.2"); } }