@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...");