|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.tests.TimePrinter
public class TimePrinter
Prints the time dt, which is passed to all Updateable
instances, to a stream.
Field Summary | |
---|---|
protected PrintStream |
stream
The stream to print to. |
Constructor Summary | |
---|---|
TimePrinter(PrintStream stream)
Initializes the instance to print to the given stream. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PrintStream stream
Constructor Detail |
---|
public TimePrinter(PrintStream stream)
stream
- The stream to write to.Method Detail |
---|
public void compute(float dt)
compute
in interface Updateable
dt
- The time that has passed since the last invocation.public void update()
update
in interface Updateable
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |