The Physiologist's Friend Simulation API

ch.unizh.ini.friend.simulation
Interface Updateable

All Known Subinterfaces:
ColorStimulus, Stimulus
All Known Implementing Classes:
AbstractCell, AbstractMonitor, AbstractSpikingCell, AbstractStimulus, AudioOutput, BarStimulus, BipolarCell, ColorPhotoreceptor, ColorStimulusImpl, ConcreteStimulus, EdgeStimulus, GanglionCell, GratingStimulus, HorizontalCell, IntegrateFireCell, MicrophoneReporter, OscillatingOutput, OutputPrinter, Photoreceptor, PoissonSoma, SimpleOutputMonitor, SimulationReporter, SpotStimulus, StatusPanel, TimePrinter

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.

Version:
$Revision: 1.8 $
Author:
Christof Marti

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

compute

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.

update

void update()
Updates the actual state to the newly computed - aka double-buffering.


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