Beispiel #1
0
 public CheckPlanes(CalculateVelocity cv, CalculateCourse cc, Renedition rr)
 {
     _cc    = cc;
     _cv    = cv;
     _rr    = rr;
     Planes = new List <Plane>();
 }
Beispiel #2
0
        void PassSepEvent(Plane plane1, Plane plane2, string timestamp)
        {
            Log log = new Log();

            log.WriteToLog(plane1.Tag, plane2.Tag, timestamp);

            Renedition renedition = new Renedition();

            renedition.CurSepEvent(plane1.Tag, plane2.Tag, timestamp);
        }
Beispiel #3
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);
            }
        }