コード例 #1
0
 public override void Read(BinaryReader br, int length = 0)
 {
     Displacement = new D();
     Displacement.Read(br, 4);
     Size = new SWS();
     Size.Read(br);
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 public override string GetResults(Stage1 stage1, Stage2 s2, SWS sws, REM rem)
 {
     Debug.Assert(false, "This is not used for default");
     return("");
 }
コード例 #4
0
        public override string GetResults(Stage1 stage1, SWS slowWaveSleep, REM REMsleep)
        {
            var index = resultsTable[(int)stage1, (int)slowWaveSleep, (int)REMsleep];

            return(results[index]);
        }
コード例 #5
0
        //This is used to get different types of results through inheritance


        public abstract string GetResults(
            Stage1 s1,
            SWS slowWaveSleep,
            REM REMsleep);