|
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.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.AbstractMonitor
ch.unizh.ini.friend.simulation.SimpleOutputMonitor
public class SimpleOutputMonitor
Provides synchronization between the gui and the simulation needed for the gui to monitor the output of a simulation component.
Nested Class Summary | |
---|---|
static class |
SimpleOutputMonitor.Deliverable
An abstract class whose heirs' instances can be passed to invokeLater()
by an instance of SimpleOutputMonitor . |
Field Summary | |
---|---|
protected SimpleOutputMonitor.Deliverable |
deliverable
The prototype of the deliverable. |
protected long |
nextUpdate
The time of the next update. |
protected long |
updateInterval
The update interval in milliseconds. |
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
SimpleOutputMonitor(SimpleOutputMonitor.Deliverable deliverable)
Creates a new instance of SimpleOutputMonitor |
|
SimpleOutputMonitor(SimpleOutputMonitor.Deliverable deliverable,
ServesOutput input)
Creates a new instance of SimpleOutputMonitor with the given input. |
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractMonitor |
---|
getInput, getInputs, setInput, setInputs, update |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, integrateInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SimpleOutputMonitor.Deliverable deliverable
protected long updateInterval
protected long nextUpdate
Constructor Detail |
---|
public SimpleOutputMonitor(SimpleOutputMonitor.Deliverable deliverable)
public SimpleOutputMonitor(SimpleOutputMonitor.Deliverable deliverable, ServesOutput input)
Method Detail |
---|
public void compute(float dt)
dt
- The time that has passed since the last invocation.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |