|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimulationTask
The interface of a simulation for the controlling thread.
Method Summary | |
---|---|
void |
addUpdateable(Updateable u)
Adds an updateable to the simulation. |
long |
getDelay()
|
int |
getNumberOfIterationsPerStep()
|
SimulationStep |
getStep()
Returns the simulation step instance. |
void |
removeUpdateable(Updateable u)
Removes an updateable from the simulation. |
void |
setDelay(long ms)
set the timer delay in ms between each simulation step |
void |
setNumberOfIterationsPerStep(int n)
set the number of iterations over the updateables for each step. |
void |
start()
Starts the simulation. |
void |
stop()
Stops the simulation. |
Method Detail |
---|
void start()
void stop()
SimulationStep getStep()
void addUpdateable(Updateable u)
u
- An updateable.void removeUpdateable(Updateable u)
u
- An updateable.void setNumberOfIterationsPerStep(int n)
n
- the numberint getNumberOfIterationsPerStep()
setNumberOfIterationsPerStep(int)
void setDelay(long ms)
ms
- the delay in msgetDelay()
long getDelay()
setDelay(long)
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |