Examples of SimDataObject


Examples of messages.planesim.SimDataObject

            it = pl.listIterator();

            while (it.hasNext()) {
                try {
                    out.writeObject(new SimDataObject((PlaneObject) it.next()));
                } catch (IOException ex) {
                    ex.printStackTrace();
                }
            }
        }
View Full Code Here

Examples of messages.planesim.SimDataObject

       
        @Override
        public void run() {

            while (run) {
                SimDataObject so;
                try {
                    so  = (SimDataObject) in.readObject();
                    PlaneDataObject pdo = new PlaneDataObject(so.getName(),"simulator",so.getLat(),so.getLon(),so.getAlt(), 0,0);
//                    System.out.println("Lat: "+pdo.getLatitude()+" Lon: "+pdo.getLongitude());
                    server.broadcast(pdo);
                   
                } catch (IOException ex) {
                    System.out.println("lost stream, restarting...");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.