Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (!self::$appcbGenerator) {
         self::$appcbGenerator = new APPCBGenerator();
         self::$channelsList = array();
         array_push(self::$channelsList, 'CO');
         //array_push(self::$channelsList,'Ozone');
         array_push(self::$channelsList, 'Ozone(O3)');
         array_push(self::$channelsList, 'PM10');
         array_push(self::$channelsList, 'PM2.5');
         array_push(self::$channelsList, 'SO2');
         array_push(self::$channelsList, 'NO2');
         array_push(self::$channelsList, 'Pb');
         array_push(self::$channelsList, 'NH3');
         array_push(self::$channelsList, 'Benzene');
         array_push(self::$channelsList, 'Arsenic');
         array_push(self::$channelsList, 'Nickel');
         array_push(self::$channelsList, 'BenzoPyrene');
         return self::$appcbGenerator;
     }
     return self::$appcbGenerator;
 }
Ejemplo n.º 2
0
<?php

require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "/Utils/DateUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/FileSystemUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/ConvertorUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/Utils/StringUtils.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/WQDFileDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/WQDDataDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/FolderDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/DataStoreMgr/ChannelConfigurationDataStore.php";
require_once $ConstantsArray['dbServerUrl'] . "/Generators/APPCBGenerator.php";
require_once $ConstantsArray['dbServerUrl'] . '/log4php/Logger.php';
Logger::configure('/home/envirote/public_html/app/log4php/log4php.xml');
$appcbGenerator = APPCBGenerator::getInstance();
$appcbGenerator->generateFile();
$repColSize = new ArrayObject();
$repColSize["CO"] = 4;
$repColSize["Ozone"] = 5;
$repColSize["Ozone(O3)"] = 5;
$repColSize["NO"] = 5;
$repColSize["NO2"] = 5;
$repColSize["NOx"] = 5;
$repColSize["NH3"] = 5;
$repColSize["SO2"] = 4;
$repColSize["Benzene"] = 5;
$repColSize["Toluene"] = 5;
$repColSize["Xylene"] = 5;
$repColSize["P-Xylene"] = 5;
$matRepColSize = new ArrayObject();
$matRepColSize["PM2.5"] = 7;