net.jetrix.winlist
Interface Winlist

All Known Implementing Classes:
SimpleWinlist, TetrixWinlist

public interface Winlist

A winlist ranking players and teams.

Since:
0.1.2
Version:
$Revision: 545 $, $Date: 2005-01-05 18:16:04 +0100 (mer., 05 janv. 2005) $
Author:
Emmanuel Bourg

Method Summary
 void clear()
          Remove all entries in the winlist
 WinlistConfig getConfig()
          Return the configuration necessary to create the same winlist
 String getId()
          Return the id for this winlist.
 Score getScore(String name, int type)
          Return the score of the specified player or team
 List<Score> getScores(long offset, long length)
          Return the score list in the specified range.
 void init(WinlistConfig config)
          Initialize the winlist.
 void saveGameResult(GameResult result)
          Update the winlist with the specified game result.
 void setId(String id)
          Set the id for this winlist.
 int size()
          Return the number of entries in the winlist
 

Method Detail

getId

String getId()
Return the id for this winlist.


setId

void setId(String id)
Set the id for this winlist.


init

void init(WinlistConfig config)
Initialize the winlist.

Parameters:
config - the winlist configuration

getConfig

WinlistConfig getConfig()
Return the configuration necessary to create the same winlist

Since:
0.2

getScore

Score getScore(String name,
               int type)
Return the score of the specified player or team

Parameters:
name - the name of the player or team
type - the score type (0: player, 1: team)

getScores

List<Score> getScores(long offset,
                      long length)
Return the score list in the specified range.

Parameters:
offset - the beginning of the range
length - the length of the range

saveGameResult

void saveGameResult(GameResult result)
Update the winlist with the specified game result.


clear

void clear()
Remove all entries in the winlist

Since:
0.2

size

int size()
Return the number of entries in the winlist

Since:
0.2


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.