1.1 --- a/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Wed Jan 13 16:57:28 2010 +0100
1.2 +++ b/statistics/src/main/java/cz/xelfi/quoridor/statistics/EloList.java Mon Jan 18 10:29:53 2010 +0100
1.3 @@ -52,8 +52,7 @@
1.4
1.5 Map<String, Double> players;
1.6 Map<String, Integer> playerGames;
1.7 - long firstGame = 0;
1.8 - long lastGame = 0;
1.9 + long published = 0;
1.10 boolean originalList;
1.11
1.12
1.13 @@ -69,6 +68,14 @@
1.14 originalList = false;
1.15 }
1.16
1.17 + public void setEndDate(long endDate){
1.18 + this.published = endDate;
1.19 + }
1.20 +
1.21 + public long getEndDate(){
1.22 + return this.published;
1.23 + }
1.24 +
1.25 @XmlElementWrapper(name="elolist")
1.26 @XmlElement(name="item")
1.27 public List<EloEntry> getFinalList(){
1.28 @@ -81,13 +88,6 @@
1.29 }
1.30
1.31 public EloList putResult(String winner, String looser){
1.32 - return putResult(winner, looser, System.currentTimeMillis());
1.33 - }
1.34 -
1.35 - public EloList putResult(String winner, String looser, long modified){
1.36 - this.lastGame = modified;
1.37 - if(this.firstGame == 0)
1.38 - this.firstGame = modified;
1.39 double wElo = getElo(winner);
1.40 double lElo = getElo(looser);
1.41