The Physiologist's Friend Simulation API

ch.unizh.ini.friend.tests
Class OscillatingOutput

java.lang.Object
  extended by ch.unizh.ini.friend.simulation.AbstractAcceptsInput
      extended by ch.unizh.ini.friend.simulation.cells.AbstractCell
          extended by 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.
 
Fields inherited from class ch.unizh.ini.friend.simulation.cells.AbstractCell
newValue, value
 
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput
inputs
 
Constructor Summary
OscillatingOutput()
           
 
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.cells.AbstractCell
output, update
 
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, getInput, getInputs, integrateInputs, setInput, setInputs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vt

protected float vt
Virtual time.


vdt

protected float vdt
Virtual dt per iteration.

Constructor Detail

OscillatingOutput

public OscillatingOutput()
Method Detail

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.

http://www.ini.unizh.ch/~tobi/friend