|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Updateable
This interface provides members common to all classes
that participate in a simulation.
The proper way to process all cells is to first iterate over all cells doing a compute(float)
on each one,
then, in a separate iteration,
update()
all their values.
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
void |
update()
Updates the actual state to the newly computed - aka double-buffering. |
Method Detail |
---|
void compute(float dt)
dt
- The time that has passed since the last invocation.void update()
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |