コード例 #1
0
 public void Decay() //tested
 {
     Console.WriteLine("Task_CellBody {0} is decaying...", Id);
     while (DateTime.Now - start < runLength)
     {
         Thread.Sleep(body.DecayFrequency);
         body.DecayMembranePotential();
         //Console.WriteLine("Task_CellBody {0} decayed cell body membrane potential to {1}.", Id, body.MembranePotential);
     }
     Console.WriteLine("Task_CellBody {0} is done.", Id);
 }