|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lenkaspace.creeper.report.CRBaseReport
public class CRBaseReport
A base report object of unspecified type. Provides interface and components for other report objects. For better performance, maintain an instance that opens and closes with (updated) data rather than creating a new popup every time.
| Constructor Summary | |
|---|---|
CRBaseReport(java.lang.String title_,
java.awt.Dimension size_,
boolean displaysWindow_)
Constructor |
|
| Method Summary | |
|---|---|
void |
createSelf(java.lang.String printToFileName_,
boolean show_)
Create a window of the report. |
void |
display()
Display the report on screen in popup |
boolean |
getDisplaysWindow()
|
java.lang.String |
getFileName()
|
void |
onRunEnd(int runNumber_)
Called by CRController each time a run ends. |
void |
onRunStart(int runNumber_)
Called by CRController each time a run starts. |
void |
onSimulationEnd()
Called by CRController each time a simulation ends Use this to save any simulation-persisting data |
void |
onSimulationStart()
Called by CRController each time a new simulation starts Use this to reset any simulation-persisting data |
void |
onTrialEnd(int trialNumber_,
int runNumber_)
Called by CRController each time a trial ends. |
void |
onTrialStart(int trialNumber_,
int runNumber_)
Called by CRController each time a trial starts. |
void |
onUpdateLoopEnd(int timeCounter_,
int timeUnit_)
Called from CRController after onUpdateLoopEnd() of all world objects is called. |
void |
onUpdateLoopStart(int timeCounter_,
int timeUnit_)
Called from CRController before onUpdateLoopStart() of all world objects is called. |
void |
setController(CRController controller_)
|
void |
setReportController(CRReportController reportController_)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRBaseReport(java.lang.String title_,
java.awt.Dimension size_,
boolean displaysWindow_)
title_ - String title of the reportsize_ - Dimension size of the report windowdisplaysWindow_ - boolean if true, the report displays a window when its createSelf() is called| Method Detail |
|---|
public void display()
public void createSelf(java.lang.String printToFileName_,
boolean show_)
printToFileName_ - String file name to print report into, without extensionshow_ - boolean if false, report is hidden immediately after printedpublic void onSimulationStart()
public void onSimulationEnd()
public void onRunStart(int runNumber_)
runNumber_ - int new run numberpublic void onRunEnd(int runNumber_)
runNumber_ - int ending run number
public void onTrialStart(int trialNumber_,
int runNumber_)
trialNumber_ - int new trial numberrunNumber_ - int new run number
public void onTrialEnd(int trialNumber_,
int runNumber_)
trialNumber_ - int ending trial numberrunNumber_ - int current run number
public void onUpdateLoopStart(int timeCounter_,
int timeUnit_)
timeCounter_ - int current time counter, i.e. part of the timeUnit_timeUnit_ - int current time unit
public void onUpdateLoopEnd(int timeCounter_,
int timeUnit_)
timeCounter_ - int current time counter, i.e. part of the timeUnit_timeUnit_ - int current time unitpublic void setController(CRController controller_)
public java.lang.String getFileName()
public void setReportController(CRReportController reportController_)
public boolean getDisplaysWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||