コード例 #1
0
 private void ReadFile(AlgorythmSettings settings)
 {
     if (settings.IsModel)
     {
         ModelReader  reader  = new ModelReader(settings.InputFileName);
         SignalRoutes signals = new SignalRoutes(reader.ReadData());
         matrix = new ProjectionsData(reader.CellSize, signals, 0, reader.MaxX1, 0, reader.MaxY1);
     }
     else
     {
         RealDataReader reader  = new RealDataReader(settings.InputFileName);
         SignalRoutes   signals = new SignalRoutes(reader.ReadData());
         matrix = new ProjectionsData(10, signals, 0, 150, 0, 100);
     }
 }