Example #1
0
        static void Main()
        {
            var receiver          = TransponderReceiverFactory.CreateTransponderDataReceiver();
            CalculateVelocity cv  = new CalculateVelocity();
            CalculateCourse   cc  = new CalculateCourse();
            Renedition        rr  = new Renedition();
            CheckPlanes       As  = new CheckPlanes(cv, cc, rr);
            Airspace          SAs = new Airspace(As);

            var system = new HandleRTD(receiver, SAs);

            while (true)
            {
                Thread.Sleep(5000);
            }
        }
        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);
            }
        }