Exemplo n.º 1
0
        public void Printing(List <ITracks> tracks, IMonitors monitor)
        {
            monitor.Track = tracks;
            //Her bliver mest af updates klasser initialiseret
            if (tracks.Count == 1)
            {
                _Update.TrackCalculated(monitor, CalcDist, CalcCourse, CalcVel, Logger, Separation, tracks);
            }

            foreach (var track in monitor.Track)
            {
                monitor.Track = tracks;
                //Tilsat filtering
                if (monitor.MonitorFlight(track))
                {
                    _myOutput.OutputLine($"Tag: {track.Tag}");
                    _myOutput.OutputLine($"XCoord: {track.X}");
                    _myOutput.OutputLine($"YCoord: {track.Y}");
                    _myOutput.OutputLine($"Altitude: {track.Altitude}");
                    _myOutput.OutputLine($"Velocity: {track.Velocity}");
                    _myOutput.OutputLine($"Course: {track.Course}");
                    _myOutput.OutputLine($"");
                    //System.Console.WriteLine(track);
                }
                //else
                {
                }
            }
        }
Exemplo n.º 2
0
        private void RaiseFakeEvent()
        {
            _uut.TrackCalculated(_monitor, _calcDistance, _calcCourse, _calcVelocity, _logger, _separation, receivedTrackData);

            // Hæv eventet hvis _decoder har fået hævet flaget, indsæt den falske liste
            _decoder.TrackDataReadyForCalculation += Raise.EventWith(_fakeTransponderData);
        }
Exemplo n.º 3
0
 public void Action()
 {
     //Går ind i update løkken der finder ud af om de har kollision
     _monitor.Track = _Tracklist;
     _Update.TrackCalculated(_monitor, _CalcDistance, _calcCourse, _calcVelocity, _logger, _uut, _Tracklist);
 }