|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lenkaspace.creeper.report.CRBaseReport
net.lenkaspace.creeper.report.CRWorldSnapshotReport
public class CRWorldSnapshotReport
Creates graphical snapshots of the world at specified times / intervals and saves them to the report folder.
| Constructor Summary | |
|---|---|
CRWorldSnapshotReport(java.lang.String title_,
java.awt.Dimension size_,
int snapshotFrequency_)
Constructor |
|
CRWorldSnapshotReport(java.lang.String title_,
java.awt.Dimension size_,
int[] snapshotTimeUnits_)
Constructor |
|
| Method Summary | |
|---|---|
void |
createSelf(java.lang.String printToFileName_,
boolean show_)
Create a window of the report. |
void |
onTrialEnd(int trialNumber_,
int runNumber_)
Called by CRController each time a trial ends. |
void |
onUpdateLoopEnd(int timeCounter_,
int timeUnit_)
Called from CRController after onUpdateLoopEnd() of all world objects is called. |
| Methods inherited from class net.lenkaspace.creeper.report.CRBaseReport |
|---|
display, getDisplaysWindow, getFileName, onRunEnd, onRunStart, onSimulationEnd, onSimulationStart, onTrialStart, onUpdateLoopStart, setController, setReportController |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRWorldSnapshotReport(java.lang.String title_,
java.awt.Dimension size_,
int[] snapshotTimeUnits_)
title_ - String title of the reportsize_ - Dimension size of the report windowsnapshotTimeUnits_ - ArrayList
public CRWorldSnapshotReport(java.lang.String title_,
java.awt.Dimension size_,
int snapshotFrequency_)
title_ - String title of the reportsize_ - Dimension size of the report windowsnapshotFrequency_ - int frequency in time units at which snapshots will be saved. Must be > 0.| Method Detail |
|---|
public void onUpdateLoopEnd(int timeCounter_,
int timeUnit_)
onUpdateLoopEnd in class CRBaseReporttimeUnit_ - int current time unittimeCounter_ - int current time counter, i.e. part of the timeUnit_
public void onTrialEnd(int trialNumber_,
int runNumber_)
onTrialEnd in class CRBaseReporttrialNumber_ - int ending trial numberrunNumber_ - int current run number
public void createSelf(java.lang.String printToFileName_,
boolean show_)
createSelf in class CRBaseReportprintToFileName_ - String file name to print report into, without extensionshow_ - boolean if false, report is hidden immediately after printed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||