simulations.xml
Class XMLGameWriter
java.lang.Object
simulations.xml.XMLGameWriter
public class XMLGameWriter
- extends java.lang.Object
This class is used to create the XML configuration file
|
Constructor Summary |
XMLGameWriter()
Creates a new instance of XMLGameWriter |
|
Method Summary |
void |
create(java.io.File xmlFile,
long seed,
int loosingPoints,
float winnerPoints,
float coalitionPoints,
int traceLevel,
int coalitionDefinition,
boolean proportional,
java.io.File historyFile,
java.io.File graphFile,
java.util.ArrayList playerList)
This method create the file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLGameWriter
public XMLGameWriter()
- Creates a new instance of XMLGameWriter
create
public void create(java.io.File xmlFile,
long seed,
int loosingPoints,
float winnerPoints,
float coalitionPoints,
int traceLevel,
int coalitionDefinition,
boolean proportional,
java.io.File historyFile,
java.io.File graphFile,
java.util.ArrayList playerList)
- This method create the file
- Parameters:
graphFile - The file to save graphxmlFile - The file to createseed - The random seedloosingPoints - The points loose by the atacked playerwinnerPoints - The proportion of loosing point win by the attacking playercoalitionPoints - The proportion of loosing point win by the helping playertraceLevel - The trace level for the historycoalitionDefinition - The coalition's definitionproportional - True if the redistribution is proportional with the player resourceshistoryFile - The history fileplayerList - The player list