Exemple #1
0
        static void Main(string[] args)
        {
            List <String> transponderdataList = new List <string>();
            var           track1 = "BIJ515;12345;54321;17891;20180409153742853";
            var           track2 = "BIJ516;12345;54322;17891;20180409153742853";

            transponderdataList.Add(track1);
            transponderdataList.Add(track2);

            Faketransponderreciever myReciever = new Faketransponderreciever(transponderdataList);
            //var myReciever = Faketransponderreciever.ITransponderReceiver.CreateTransponderDataReceiver();

            IConvertStringToDateTime convertStringToDateTime = new ConvertStringToDateTime();
            ICalculateVelocity       calculateVelocity       = new CalculateVelocity();
            ICalculateCourse         calculateCourse         = new CalculateCourse();
            IWriter           writer             = new ConsoleWriter();
            ILogWriter        logWriterToFile    = new LogWriter();
            ILogWriter        logWriterToConsole = new LogWriter();
            SeperationEvent   seperationEvent    = new SeperationEvent();
            IEventController  eventController    = new EventController(logWriterToFile, logWriterToConsole);
            ISeperationTracks seperationTracks   = new SeperationTracks(seperationEvent, eventController);
            ISortingTracks    sortingTracks      = new SortingTracks(calculateVelocity, calculateCourse, writer, seperationTracks);
            IFilterAirspace   filterAirspace     = new FilterAirspace(sortingTracks);
            IConvertTrackData convertTrackData   = new ConvertTrackData(myReciever, convertStringToDateTime, filterAirspace);

            Console.ReadKey();
        }
Exemple #2
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            var velocityJob = new CalculateVelocity {
                DeltaTime = Time.deltaTime
            };
            var velocityHandle = velocityJob.Schedule(this, inputDeps);

            return(velocityHandle);
        }
Exemple #3
0
 public void SetUp()
 {
     fakeTransponderReceiver = Substitute.For <ITransponderReceiver>();
     calculateCourse         = new CalculateCourse();
     calculateVelocity       = new CalculateVelocity();
     renedition  = new Renedition();
     checkPlanes = new CheckPlanes(calculateVelocity, calculateCourse, renedition);
     airspace    = new Airspace(checkPlanes);
     uut         = new HandleRTD(fakeTransponderReceiver, airspace);
 }
Exemple #4
0
        static void Main(string[] args)
        {
            var myReciever = TransponderReceiverFactory.CreateTransponderDataReceiver();
            IConvertStringToDateTime convertStringToDateTime = new ConvertStringToDateTime();
            ICalculateVelocity       calculateVelocity       = new CalculateVelocity();
            ICalculateCourse         calculateCourse         = new CalculateCourse();
            IWriter           writer             = new ConsoleWriter();
            ILogWriter        logWriterToFile    = new LogWriter();
            ILogWriter        logWriterToConsole = new ConsoleSeperation();
            SeperationEvent   seperationEvent    = new SeperationEvent();
            IEventController  eventController    = new EventController(logWriterToFile, logWriterToConsole);
            ISeperationTracks seperationTracks   = new SeperationTracks(seperationEvent, eventController);
            ISortingTracks    sortingTracks      = new SortingTracks(calculateVelocity, calculateCourse, writer, seperationTracks);
            IFilterAirspace   filterAirspace     = new FilterAirspace(sortingTracks);
            IConvertTrackData convertTrackData   = new ConvertTrackData(myReciever, convertStringToDateTime, filterAirspace);

            Console.ReadKey();
        }
Exemple #5
0
        public void SetUp()
        {
            uut = new CalculateVelocity();

            fly1             = new Plane();
            fly1.Tag         = "ABC123";
            fly1.XCoordinate = 1000;
            fly1.YCoordinate = 1000;
            fly1.Altitude    = 17100;
            fly1.TimeStamp   = time1;

            fly2             = new Plane();
            fly2.Tag         = "ABC123";
            fly2.XCoordinate = 2000;
            fly2.YCoordinate = 2000;
            fly2.Altitude    = 18100;
            fly2.TimeStamp   = time2;
        }
        public void SetUp()
        {
            _transponderReceiver = Substitute.For <ITransponderReceiver>();
            _cc       = new CalculateCourse();
            _cv       = new CalculateVelocity();
            trackData = new TrackData();

            _fakeEventArgs1 = new RawTransponderDataEventArgs(new List <string>()
            {
                "FLY1;88000;88000;6000;20180420222222222"
                //"FLY2;72000;91000;19999;20180420222222222",
                //"FLY3;86000;86000;6500;20180420222222222"
            });

            _fakeEventArgs2 = new RawTransponderDataEventArgs(new List <string>()
            {
                "FLY1;86000;86000;6000;20180420223222222"
                //"FLY2;72000;91000;19999;20180420223222222",
                //"FLY3;86000;86000;6500;20180420223222222"
            });
        }
Exemple #7
0
        public void Setup()
        {
            calccourse   = new CalculateCourse();
            calcvelocity = new CalculateVelocity();

            fakerenedition = Substitute.For <IRenedition>();
            fakeplanelist  = Substitute.For <List <IPlane> >();
            fakeplane1     = Substitute.For <IPlane>();
            fakeplane2     = Substitute.For <IPlane>();

            sut = new CheckPlanes(calcvelocity, calccourse, fakerenedition);

            fakeplane1             = new Plane();
            fakeplane1.Tag         = "ABC123";
            fakeplane1.XCoordinate = 30000;
            fakeplane1.YCoordinate = 30000;
            fakeplane1.Altitude    = 17100;

            fakeplane2             = new Plane();
            fakeplane2.Tag         = "ABC123";
            fakeplane2.XCoordinate = 40000;
            fakeplane2.YCoordinate = 35000;
            fakeplane2.Altitude    = 17100;
        }
 public void SetUp()
 {
     _dataSorter = NSubstitute.Substitute.For <iTrafficDataSorter>();
     _uut        = new CalculateVelocity(_dataSorter);
 }