simulations.xml
Class XMLGameWriter

java.lang.Object
  extended by 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
 

Constructor Detail

XMLGameWriter

public XMLGameWriter()
Creates a new instance of XMLGameWriter

Method Detail

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 graph
xmlFile - The file to create
seed - The random seed
loosingPoints - The points loose by the atacked player
winnerPoints - The proportion of loosing point win by the attacking player
coalitionPoints - The proportion of loosing point win by the helping player
traceLevel - The trace level for the history
coalitionDefinition - The coalition's definition
proportional - True if the redistribution is proportional with the player resources
historyFile - The history file
playerList - The player list