示例#1
0
 private void GenerateInitialValues()
 {
     ReadFirst = true;
     PredByte  = ReadByte;
     Pred      = ReadTime.AddSeconds(-1);
     Succ      = ReadTime;
 }
示例#2
0
 private void GetInitialValues()
 {
     ReadFirst     = true;
     PredByte      = ReadByte;
     Curr          = ReadTime.AddSeconds(-1 * ReadTime.Second);
     Pred          = ReadTime;
     MinuteSamples = 1;
     WriteLine(Curr, ReadByte);
 }
示例#3
0
 protected override void Execute()
 {
     if (!ReadFirst)
     {
         GenerateInitialValues();
     }
     if (Pred == ReadTime)
     {
         return;
     }
     // we're missing a second or two. fill in the gap(s).
     if (Succ != ReadTime)
     {
         FillGapWithLastByte();
     }
     Succ     = ReadTime.AddSeconds(1);
     Pred     = ReadTime;
     PredByte = ReadByte;
     Target.WriteLine(ReadLine);
 }