> JEsMS
JEsMS
 

JEsMS

Syntax: java -cp JEsMS.jar JESMS [<HomeTeamSheet> <AwayTeamSheet>][<OPTIONS>]

JESMS is the core program which simulates a match between two teams (if you already know ESMS, JESMS is the ESMS.exe replacement).

HomeTeamSheet and AwayTeamSheets contain the filenames of home and away teamsheets, both JESMS and ESMS formats can be used, if the filename extension is xml, JESMS format is assumed while if txt extension is used, then classic ESMS format is used. These two parameters are optional and, if they're not used, JEsMS will ask the user for each teamsheet (runs in interactive mode).

Notice that file extension is very important: if a file ends with xml JEsMS assumes it's in the new XML format while if it ends with txt JEsMS will consider it as a classic ESMS teamsheet and will automatically convert it to new XML format.

OPTIONS:

-r:<seed>
seed is a number used to initialize the match engine, if it's not used then the match engine will be initialized to a random value (therefore generating random matches). The seed used for a particular match is always written by JEsMS on the commentary file as it results useful in several situations: bug reports (every problem happened during a match can be quickly recreated using the same seeds and teamsheets), match replay (if, for any reason, a match must be replayed, one league administrator could use the same seed to ensure fairness), to avoid league administrator cheating (by making the seed public before teamsheets are sent each manager can be sure that administrator has not replayed the match).
-x:<xslfile>
xslfile is the filename of as xsl file used to transform the xml commentary match generated by JESMS. The transformation is handled internally by JESMS and the result is placed in a file with extension .out (notice that xml file is always produced, since it is used by other JESMS suite tools). Here there are several standard xsl files used to convert xml commentary to other, more readable, formats such as txt or html.
-xe:<xslurl>
Very similar to the previous flag but instead of processing statically the xml producing an external file, a reference (an URL) to xslfile is embedded directly into the xml file. (xsl transformation will be done later by the web browser used to open the xml file. This can be very useful when using ManagerApplet on a league site since in this way a commentary file can be both XML (to be parsed by ManagerApplet) and readable as HTML by a web browser.