Exemplo n.º 1
0
        public void OnDataReady(object sender, RawTransponderDataEventArgs e)
        {
            var datalist  = e.TransponderData;
            var planeList = new List <Plane>();
            DetectSeparationEvent detectSeparationEvent = new DetectSeparationEvent();

            for (int i = 0; i < datalist.Count; i++)
            {
                var plane = Decode(datalist[i]);
                planeList.Add(plane);
            }

            _CheckPlanes.CheckAirspace(planeList);
            detectSeparationEvent.CheckSepEvent(planeList);
        }
Exemplo n.º 2
0
        public static void RunATM()
        {
            Renedition            ren    = new Renedition();
            DetectSeparationEvent detect = new DetectSeparationEvent();

            var receiver                 = TransponderReceiverFactory.CreateTransponderDataReceiver();
            CalculateVelocity cv         = new CalculateVelocity();
            CalculateCourse   cc         = new CalculateCourse();
            CheckPlanes       As         = new CheckPlanes(cv, cc, ren);
            Airspace          SAs        = new Airspace(As);
            Renedition        renedition = new Renedition(detect, As, SAs);
            Log log = new Log(detect, SAs, As);

            var system = new HandleRTD(receiver, SAs, detect);

            while (true)
            {
                Thread.Sleep(5000);
            }
        }