コード例 #1
0
 /// <summary>
 /// Costruttore
 /// </summary>
 public WJ_Agent_Primayer()
 {
     // Millisecondi di attesa fra le esecuzioni
     job_sleep_time = WetConfig.GetInterpolationTimeMinutes() * 60 * 1000;
     // Istanzio la configurazione
     cfg = new WetConfig();
 }
コード例 #2
0
 /// <summary>
 /// Costruttore
 /// </summary>
 public WJ_MeasuresData()
 {
     // Millisecondi di attesa fra le esecuzioni
     job_sleep_time = WetConfig.GetInterpolationTimeMinutes() * 60 * 1000;
     // Carico la configurazione
     WetConfig cfg = new WetConfig();
     config = cfg.GetWJ_MeasuresData_Config();
     // carico il tempo di interpolazione
     interpolation_time = new TimeSpan(0, config.interpolation_time, 0);
 }
コード例 #3
0
        /// <summary>
        /// Restituisce il DSN del database WetNet
        /// </summary>
        /// <returns>ODBC DSN del database WetNet</returns>
        public string GetWetDBDSN()
        {
            WetConfig cfg = new WetConfig();

            return cfg.GetWetDBDSN();
        }
コード例 #4
0
 /// <summary>
 /// Varicamento del job
 /// </summary>
 protected override void Load()
 {
     // Istanzio la connessione al database wetnet
     WetConfig cfg = new WetConfig();
     wet_db = new WetDBConn(cfg.GetWetDBDSN(), null, null, true);
     config = cfg.GetWJ_Statistics_Config();
 }
コード例 #5
0
 /// <summary>
 /// Caricamento del job
 /// </summary>
 protected override void Load()
 {
     WetConfig cfg = new WetConfig();
     wet_db = new WetDBConn(cfg.GetWetDBDSN(), null, null, true);
 }
コード例 #6
0
 /// <summary>
 /// Caricamento del job
 /// </summary>
 protected override void Load()
 {
     // Istanzio la connessione al database wetnet
     WetConfig wcfg = new WetConfig();
     wet_db = new WetDBConn(wcfg.GetWetDBDSN(), null, null, true);
     cfg = wcfg.GetWJ_Events_Config();
 }