com.croftsoft.core.sim
Interface Sim
- All Known Subinterfaces:
- ChannelSim
- All Known Implementing Classes:
- HhNeuronImp, ReliableSynapse, SnapChannel, TireNeuron
public interface Sim
A simulation object updated in separate access and mutate phases.
Each loop of the simulation is started with an access (read) phase and
then followed by a mutate (write) phase.
During the access phase, simulation objects access the state of other
simulation objects to determine how their state will change during the
mutate phase. The state of simulation objects does not change during
the access phase.
During the mutate phase, the simulation objects change state. The
state of simulation objects is not accessed by other simulation
objects during the mutate phase.
Dividing the state update into two phases ensures that the result of
the update is not dependent on the order in which the simulation
objects are updated. For this to hold, the access method of every
simulation object must be called at the beginning of the simulation
loop before the mutate method is called on any one of the simulation
objects.
- Since:
- 2008-07-25
- Version:
- $Id: Sim.java,v 1.1 2008/07/25 22:54:58 croft Exp $
- Author:
- David Wallace Croft
access
void access()
mutate
void mutate()
CroftSoft Core Javadoc (2008-09-28 20:58:02)