Esempio n. 1
0
 private void OnSimulationCommencing(object sender, EventArgs e)
 {
     ZoneInfoList = new List<ZoneInfo>();
     for (int i = 2; i < Table.Count; i++)
     {
         ZoneInfo newZone = new ZoneInfo();
         newZone.zone = Apsim.Child(this, Table[0][i - 1]) as Zone;
         newZone.Shade = Convert.ToDouble(Table[i][0]);
         newZone.RLD = new double[Table[1].Count - 3];
         for (int j = 3; j < Table[1].Count; j++)
             newZone.RLD[j - 3] = Convert.ToDouble(Table[i][j]);
         ZoneInfoList.Add(newZone);
     }
 }