Package net.sf.robocode.roborumble.netengine

Examples of net.sf.robocode.roborumble.netengine.BotsDownload


      System.out.println("Iteration number " + iterations);

      // Download data from Internet if downloads is YES and it has not been download for two hours
      if (downloads.equals("YES")) {
        BotsDownload download = new BotsDownload(parameters);

        if (runonly.equals("SERVER")) {
          // Download rating files and update ratings downloaded
          System.out.println("Downloading rating files ...");
          ratingsdownloaded = download.downloadRatings();
        }
        if ((System.currentTimeMillis() - lastdownload) > 2 * 3600 * 1000) {
          System.out.println("Downloading participants list ...");
          participantsdownloaded = download.downloadParticipantsList();
          System.out.println("Downloading missing bots ...");
          download.downloadMissingBots();
          download.updateCodeSize();
          // Send the order to the server to remove old participants from the ratings file
          if (ratingsdownloaded && participantsdownloaded) {
            System.out.println("Removing old participants from server ...");
            // Send unwanted participants to the server
            download.notifyServerForOldParticipants();
          }

          lastdownload = System.currentTimeMillis();
        }
      }
View Full Code Here

TOP

Related Classes of net.sf.robocode.roborumble.netengine.BotsDownload

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.