public FlightValidator()
 {
     _airspace = new Airspace
     {
         Position = new Coords(0, 0, 500),
         Width    = 80000,
         Length   = 80000,
         Height   = 19500,
     };
 }
예제 #2
0
        static void Main(string[] args)
        {
            IDisplay  display  = new Display();
            IAirspace airspace = new Airspace();
            ILog      log      = new Log();

            ITransponderReceiver transponderReceiver = TransponderReceiverFactory.CreateTransponderDataReceiver();
            IObjectifyingModule  objectifyingModule  = new ObjectifyingModule(transponderReceiver);
            IFilterModule        filterModule        = new FilterModule(objectifyingModule, airspace);
            IUpdateModule        updateModule        = new UpdateModule(filterModule);
            ISeparationModule    separationModule    = new SeparationModule(updateModule, log);

            ISeparationRender separationRender = new SeparationRender(separationModule, display);
            ITrackRender      trackRender      = new TrackRender(updateModule, display);

            Console.ReadKey();
        }
예제 #3
0
        static void Main(string[] args)
        {
            //Det her er for at constructor-injecte SortingPlanesController
            IDisplay                 display           = new Display();
            ILogFile                 logfile           = new LogFile();
            IMonitoredPlanes         monitor           = new MonitoredPlanes();
            List <ITrack>            currentlist       = new List <ITrack>();
            List <ITrack>            removelist        = new List <ITrack>();
            List <ITrack>            otherRemoveList   = new List <ITrack>();
            ISortingPlanesController sortingcontroller = new SortingPlanesController(currentlist, display, monitor, removelist, new Calculator(), otherRemoveList);

            //Det her er for at constructor-injecte TracksInAirspaceController
            IAirspace airspace = new Airspace();
            ITracksInAirSpaceController controllerlist = new TracksInAirspaceController(airspace, sortingcontroller);

            IReceivedDataController controller = new ReceivedDataController(TransponderReceiverFactory.CreateTransponderDataReceiver(), controllerlist);

            controller.StartReceiving();

            Console.ReadKey();
        }