/// <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();
 }
 /// <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);
 }
Exemplo n.º 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();
        }
 /// <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();
 }
 /// <summary>
 /// Caricamento del job
 /// </summary>
 protected override void Load()
 {
     WetConfig cfg = new WetConfig();
     wet_db = new WetDBConn(cfg.GetWetDBDSN(), null, null, true);
 }
Exemplo n.º 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();
 }