Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #3
0
 public HandleRTD(ITransponderReceiver receiver, Airspace CheckPlanes)
 {
     Receiver = receiver;
     Receiver.TransponderDataReady += OnDataReady;
     _CheckPlanes = CheckPlanes;
 }
Пример #4
0
 public void setup()
 {
     _uut = new ATM.Airspace();
 }