Leaders
Syntax: java -cp:JEsMS.jar leaders [<NumPlayers>] [-xs:<url1>] [-xd:<url2>] [-xa:<url3>] [-xp:<url4>]
Leaders is the program used to generate statistics about players in a league (if you already knows ESMS, Leaders is simply the Leaders.exe replacement).
First of all Leaders will search for a league file (called league.xml) and parse it to extract the names of teams participating to the league. After this it will search for each roster file of league teams (roster files should be called such as <teamabbreviation>.xml) and will compare all players. At the end Leaders will produce four xml files:
- scorers.xml
- Contains best scorers of the league.
- assisters.xml
- Contains best assisters of the league.
- performs.xml
- Contains players with the best performance in the
league. Performance is calculated according to the following
formula:
Performance formulagoals*9 + shots + tackles*6 + saves*3 + assists*7 + keypasses*4 - dp - dps.xml
- Contains players with the worst discipline value. (most DP, yes, it's a negative statistic)
OPTIONS:
- NumPlayers
- NumPlayers contains the number of players contained in each list (so if NumPlayers is 10 only first ten scorers will be listed in scorers.xml). This parameter is optional and, if not defined, Leaders will use its default value (20)
- -xs:url1
- url1 represents the external url of the XSL file used to parse scorers.xml file
- -xd:url2
- url2 represents the external url of the XSL file used to parse dps.xml file
- -xa:url3
- url3 represents the external url of the XSL file used to parse assisters.xml file
- -xp:url4
- url4 represents the external url of the XSL file used to parse performs.xml file
