public override void Read(BinaryReader br, int length = 0) { Displacement = new D(); Displacement.Read(br, 4); Size = new SWS(); Size.Read(br); }
protected void StageSWSAnalysis(double AmountSWS) { if (AmountSWS == 0.0) { SlowWaveSleep = SWS.Absent; } else if (AmountSWS < StageSWSlow) { SlowWaveSleep = SWS.Decreased; } else if (AmountSWS > StageSWSHigh) { SlowWaveSleep = SWS.Increased; } else { SlowWaveSleep = SWS.Normal; } }
public override string GetResults(Stage1 stage1, Stage2 s2, SWS sws, REM rem) { Debug.Assert(false, "This is not used for default"); return(""); }
public override string GetResults(Stage1 stage1, SWS slowWaveSleep, REM REMsleep) { var index = resultsTable[(int)stage1, (int)slowWaveSleep, (int)REMsleep]; return(results[index]); }
//This is used to get different types of results through inheritance public abstract string GetResults( Stage1 s1, SWS slowWaveSleep, REM REMsleep);