Esempio n. 1
0
 public PiscesDMI(string dbName, string controlFilename, DateTime t1, DateTime t2)
 {
     m_controlFile = new ControlFile(controlFilename);
     m_dbName = dbName;
     m_t1 = t1;
     m_t2 = t2;
 }
Esempio n. 2
0
 public PiscesDMI(string dbName, string controlFilename, DateTime t1, DateTime t2)
 {
     m_controlFile = new ControlFile(controlFilename);
     m_dbName      = dbName;
     m_t1          = t1;
     m_t2          = t2;
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="server">either pnhyd0 or yakhyd</param>
 /// <param name="controlFilename">riverware control file</param>
 /// <param name="startDate">riverware simulation start date</param>
 public HydrometDMI(HydrometHost server, string controlFilename,
                    DateTime startDate, DateTime endDate)
 {
     controlFile1   = new ControlFile(controlFilename);
     this.startDate = startDate;
     this.endDate   = endDate;
     this.server    = server;
 }
Esempio n. 4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="server">either pnhyd0 or yakhyd</param>
 /// <param name="controlFilename">riverware control file</param>
 /// <param name="startDate">riverware simulation start date</param>
 public HydrometDMI(HydrometHost server, string controlFilename, 
     DateTime startDate, DateTime endDate)
 {
     controlFile1 = new ControlFile(controlFilename);
     this.startDate = startDate;
     this.endDate = endDate;
     this.server = server;
 }
Esempio n. 5
0
        public static void ProcessFile(string filename)
        {
            ControlFile cf = new ControlFile(filename);

            for (int i = 0; i < cf.Length; i++)
            {
                double val = 0.0;
                if (cf.OptionExists(i, "static_file"))
                {
                    // nothing to do for static files
                }
                else
                if (cf.TryParse(i, "data", out val, 0))
                {
                    string outFilename = "";
                    cf.TryParse(i, "file", out outFilename);
                    File.WriteAllText(outFilename, val.ToString() + "\n");
                }
                else
                {
                    Console.WriteLine("Error parsing '" + cf[i]);
                }
            }
        }
Esempio n. 6
0
 public ExcelDMI(string excelName, string controlFilename)
 {
     controlFile1 = new ControlFile(controlFilename);
     this.excelName = excelName;
     TimeSpan ts = new TimeSpan(t2.Ticks - t1.Ticks);
 }
Esempio n. 7
0
 public ExcelDMI(string excelName, string controlFilename)
 {
     controlFile1   = new ControlFile(controlFilename);
     this.excelName = excelName;
     TimeSpan ts = new TimeSpan(t2.Ticks - t1.Ticks);
 }