Exemple #1
0
        protected override void AfterStop(MultipleTalker talker)
        {
            m_prevBinTime  = string.Empty;
            m_tide         = 1000;
            m_nextSyncTime = DateTime.MinValue;
            m_prevPhase    = 0;
            m_prevAlarmId  = string.Empty;

            m_gridEqkId = null;
            m_gridMap?.Dispose();
            m_gridMap = null;
            foreach (var brush in m_mmiBrushes)
            {
                brush.Dispose();
            }
            m_mmiBrushes = null;
            lock (m_syncGridPath)
            {
                m_gridFilePath = null;
            }

            m_stationUpdate = true;
            m_stations.Clear();
            m_maxStnMmi = StnMmiTrigger - 1;

            m_stationDb = null;
        }
Exemple #2
0
        //#############################################################################################

        protected override void BeforeStart(MultipleTalker talker)
        {
            this.JobDelay = TimeSpan.FromSeconds(0.2);

            m_gridMap = Image.FromFile("map.png");

            m_stationUpdate = true;
            m_stations.Clear();
            m_maxStnMmi = StnMmiTrigger - 1;

            SyncTime();

            m_stationDb = new PewsStnDatabase();
            m_stationDb.LoadDatabase("stations.csv");

#if DEBUG
            //StartSimulation("2017000407", "20171115142931"); // 포항 5.4
            //StartSimulation("2020005363", "20200511194506"); // 북한 3.8
            //StartSimulation("2021000517", "20210203121756"); // 인천 2.2
#endif
        }