コード例 #1
0
        public GPSDataDistributer(GPSDataQueue queue, string alarmIP, int alarmPort)
        {
            this.queue = queue;
            this.thread = new System.Threading.Thread(new System.Threading.ThreadStart(Distribute));
            this.alarmIP = alarmIP;
            this.alarmPort = alarmPort;
            processtype = ConfigHelper.GetConfig("gpsdataprocessType");
            preProcessor = new GPSGatewayServer.GWOpenSevices.GPSDataPreProcess();

            history = new List<GPSDataEntity>();
            unless = new List<GPSDataEntity>();
            camera = new List<GPSDataEntity>();
            current = new List<GPSDataEntity>();
            fetach = new List<GPSDataEntity>();
            alarm = new List<GPSDataEntity>();

            //延时拍照处理线程
            processTakePhotoDelayThread = new ProcessTakePhotoDelayThread();
        }
コード例 #2
0
 public virtual void Init()
 {
     queue = new GPSDataQueue();
     PES.Beehive.Logging.Logger.Info("初始化数据队列完成");
     distributer = new GPSDataDistributer(queue, alarmIP, alarmPort);
 }