Package org.swtpra1

Class HtmlLeaderboardTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public class HtmlLeaderboardTask
    extends java.lang.Object
    implements java.lang.Runnable
    Asynchronously parses the results of the tournament into a simple HTML table enviroment and writes it into the specified location.
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlLeaderboardTask​(TournamentControl tournamentControl, java.io.File destination)
      Given the tournament control object , creates and runnable to generate a html file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Writes a simple representation of the current leaderboard as HTML into path given by "destination".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlLeaderboardTask

        public HtmlLeaderboardTask​(TournamentControl tournamentControl,
                                   java.io.File destination)
        Given the tournament control object , creates and runnable to generate a html file.
        Parameters:
        tournamentControl - object controlling the tournament
        destination - destination for the generated file
    • Method Detail

      • run

        public void run()
        Writes a simple representation of the current leaderboard as HTML into path given by "destination".
        Specified by:
        run in interface java.lang.Runnable