Class SimulationResult
java.lang.Object
net.demilich.metastone.game.statistics.SimulationResult
- All Implemented Interfaces:
Serializable,Cloneable
Summarizing the results of one or more games.
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationResult(int numberOfGames) SimulationResult(GameContext context) Creates a simulation result from a single, completed (GameContext.updateAndGetGameOver()== true) game. -
Method Summary
Modifier and TypeMethodDescriptionvoidlongintintmerge(SimulationResult other) setExceptionCount(int exceptionCount) voidsetNumberOfGames(int numberOfGames) toString()
-
Constructor Details
-
SimulationResult
public SimulationResult(int numberOfGames) -
SimulationResult
Creates a simulation result from a single, completed (GameContext.updateAndGetGameOver()== true) game.- Parameters:
context- The context to analyze.
-
-
Method Details
-
merge
-
calculateMetaStatistics
public void calculateMetaStatistics() -
getDuration
public long getDuration() -
getNumberOfGames
public int getNumberOfGames() -
getPlayer1Stats
-
getPlayer2Stats
-
toString
-
setNumberOfGames
public void setNumberOfGames(int numberOfGames) -
getExceptionCount
public int getExceptionCount() -
setExceptionCount
-