Package jadsb.data

Examples of jadsb.data.ActiveAircraftMap


            socket.setSoTimeout(ONE_MINUTE);
                           
            outDataStrm = new PrintWriter(socket.getOutputStream(), true);
            inDataStrm = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            String sentence;
            ActiveAircraftMap aircraftMap = ActiveAircraftMap.getInstance();
            MessageFormatter formatter = new MessageFormatter();
            ADSBMessage msg;
            while ((sentence = inDataStrm.readLine()) != null && isEnabled) {
                msg = formatter.extractMessage(sentence);
                if (msg != null) {
                    aircraftMap.assignToAircraft(msg);
                }
//                System.out.println(sentence);
            }
            System.out.println("Connection Terminated");
            outDataStrm.close();
View Full Code Here

TOP

Related Classes of jadsb.data.ActiveAircraftMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.