Class SimulationResult

java.lang.Object
net.demilich.metastone.game.statistics.SimulationResult
All Implemented Interfaces:
Serializable, Cloneable

public class SimulationResult extends Object implements Cloneable, Serializable
Summarizing the results of one or more games.
See Also:
  • Constructor Details

    • SimulationResult

      public SimulationResult(int numberOfGames)
    • SimulationResult

      public SimulationResult(GameContext context)
      Creates a simulation result from a single, completed (GameContext.updateAndGetGameOver() == true) game.
      Parameters:
      context - The context to analyze.
  • Method Details

    • merge

      public SimulationResult merge(SimulationResult other)
    • calculateMetaStatistics

      public void calculateMetaStatistics()
    • getDuration

      public long getDuration()
    • getNumberOfGames

      public int getNumberOfGames()
    • getPlayer1Stats

      public GameStatistics getPlayer1Stats()
    • getPlayer2Stats

      public GameStatistics getPlayer2Stats()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setNumberOfGames

      public void setNumberOfGames(int numberOfGames)
    • getExceptionCount

      public int getExceptionCount()
    • setExceptionCount

      public SimulationResult setExceptionCount(int exceptionCount)