|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lenkaspace.creeper.CRController
public class CRController
The main controller holding all the parts together. Maintains the main update loop and other threads
| Constructor Summary | |
|---|---|
CRController(java.lang.String applicationName_)
Constructor |
|
| Method Summary | |
|---|---|
void |
createDefaultControlPanel()
Create an instance of CRControlPanel and add it to the applet |
CRControlPanel |
getControlPanel()
|
CRImageProvider |
getImageProvider()
|
CRRenderer |
getRenderer()
|
CRReportController |
getReportController()
|
int |
getRunNumber()
|
int |
getTimeCounter()
|
int |
getTimeCounterSinceTrialStart()
|
int |
getTimeUnits()
|
int |
getTrialNumber()
|
CRWorld |
getWorld()
|
void |
initRun()
Initialise a run (a collection of trials). |
void |
initTrial()
Initialise a trial. |
void |
run()
Main thread |
void |
setControlPanel(CRControlPanel controlPanel_)
Remove old control panel, store reference to the new one and place it instead of the old one |
void |
setImageProvider(CRImageProvider imageProvider_)
|
void |
setReportController(CRReportController reportController_)
|
void |
setTimeSpeed(double value_)
Sets update timer delay to a value from interval specified by CRSettings's maxUpdateDelay and minUpdateDelay |
void |
setWorld(CRWorld world_)
|
void |
startSimulation(double timeSpeed_,
boolean calledManually_)
Start all threads. |
void |
startTime()
Starts timers |
void |
stopTime()
Stop painter timer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRController(java.lang.String applicationName_)
applicationName_ - Name of the application that will appear on the application window| Method Detail |
|---|
public void createDefaultControlPanel()
public void startSimulation(double timeSpeed_,
boolean calledManually_)
timeSpeed_ - double time speed from range [0;1]calledManually_ - double set to true if you are calling this function programatically, not from the ControlPanelpublic void initRun()
public void initTrial()
public void run()
run in interface java.lang.Runnablepublic void startTime()
public void stopTime()
public void setTimeSpeed(double value_)
value_ - <0;1> where 0 = slowestpublic CRControlPanel getControlPanel()
public void setControlPanel(CRControlPanel controlPanel_)
controlPanel_ - CRControlPanel new control panelpublic CRWorld getWorld()
public void setWorld(CRWorld world_)
public CRReportController getReportController()
public void setReportController(CRReportController reportController_)
public CRImageProvider getImageProvider()
public void setImageProvider(CRImageProvider imageProvider_)
public int getTimeUnits()
public int getTimeCounter()
public int getTimeCounterSinceTrialStart()
public int getTrialNumber()
public int getRunNumber()
public CRRenderer getRenderer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||