ch.unizh.ini.friend.tests
Class OscillatingOutput
java.lang.Object
ch.unizh.ini.friend.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.cells.AbstractCell
ch.unizh.ini.friend.tests.OscillatingOutput
- All Implemented Interfaces:
- AcceptsInput, ServesOutput, Updateable, Serializable
public class OscillatingOutput
- extends AbstractCell
Simple waveform generator. Doesn't produce a constant frequency in 'real' time.
- Version:
- $Revision: 1.6 $
- Author:
- Christof Marti
- See Also:
- Serialized Form
Field Summary |
protected float |
vdt
Virtual dt per iteration. |
protected float |
vt
Virtual time. |
Method Summary |
void |
compute(float dt)
Computes the new state of this component of the simulation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vt
protected float vt
- Virtual time.
vdt
protected float vdt
- Virtual dt per iteration.
OscillatingOutput
public OscillatingOutput()
compute
public void compute(float dt)
- Computes the new state of this component of the simulation.
- Parameters:
dt
- The time that has passed since the last invocation.