パッケージ mechanics.analysis

クラス StatsRecorder

java.lang.Object
mechanics.analysis.StatsRecorder

public class StatsRecorder extends Object
Periodically records effective character stats and active buff names during a simulation run, producing a series of StatsSnapshot objects.

Recording is driven by a TimerEvent registered with the CombatSimulator. The event fires at intervals defined by interval seconds and captures the effective stats (including all applicable team and character buffs) for every party member at that moment.

The collected snapshots are later used by HtmlReportGenerator to populate the interactive stats slider in the HTML report.

  • コンストラクタの詳細

    • StatsRecorder

      public StatsRecorder(CombatSimulator sim, double interval)
      Creates a new recorder attached to the given simulator.
      パラメータ:
      sim - the combat simulator to record stats from
      interval - time in seconds between successive snapshots
  • メソッドの詳細

    • startRecording

      public void startRecording()
      Registers a periodic TimerEvent with the simulator that calls recordSnapshot(simulation.CombatSimulator) at each tick. Must be called before the simulation rotation is executed.
    • getSnapshots

      public List<StatsSnapshot> getSnapshots()
      Returns the list of snapshots collected since recording started.
      戻り値:
      unmodifiable view of all recorded StatsSnapshot objects