パッケージ mechanics.analysis
クラス StatsRecorder
java.lang.Object
mechanics.analysis.StatsRecorder
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(CombatSimulator sim, double interval) Creates a new recorder attached to the given simulator. -
メソッドの概要
修飾子とタイプメソッド説明Returns the list of snapshots collected since recording started.voidRegisters a periodicTimerEventwith the simulator that callsrecordSnapshot(simulation.CombatSimulator)at each tick.
-
コンストラクタの詳細
-
StatsRecorder
Creates a new recorder attached to the given simulator.- パラメータ:
sim- the combat simulator to record stats frominterval- time in seconds between successive snapshots
-
-
メソッドの詳細
-
startRecording
public void startRecording()Registers a periodicTimerEventwith the simulator that callsrecordSnapshot(simulation.CombatSimulator)at each tick. Must be called before the simulation rotation is executed. -
getSnapshots
Returns the list of snapshots collected since recording started.- 戻り値:
- unmodifiable view of all recorded
StatsSnapshotobjects
-