The Physiologist's Friend Simulation API

ch.unizh.ini.friend.simulation
Class SimulationSetupFactory

java.lang.Object
  extended by ch.unizh.ini.friend.simulation.SimulationSetupFactory

public class SimulationSetupFactory
extends Object

Factory methods for creating instances of SimulationSetup. This is where the simulation is constructed and all the architecture is arranged.

Version:
$Revision: 1.48 $
Author:
Christof Marti, Johann Gyger

Field Summary
protected static int delay
          The delay between the timer events in milliseconds.
static int DELAY
          default timer delay in ms: 5
static int SIZE
          size of one edge of retinal array.
 
Constructor Summary
SimulationSetupFactory()
           
 
Method Summary
static SimulationSetup getColorSimulationSetup()
          Creates a simulation setup for color vision cells.
static SimulationSetup getSimulationSetup()
          Creates the monchrome simulation setup.
protected static SimulationTask getSimulationTask(SimulationStep step)
          Creates a simulation task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELAY

public static final int DELAY
default timer delay in ms: 5

See Also:
Constant Field Values

delay

protected static int delay
The delay between the timer events in milliseconds.


SIZE

public static final int SIZE
size of one edge of retinal array. Number of total retinal cells in one layer is given by
 NUM_CELLS=(5/2)*SIZE^2-(3/2)*SIZE
 
Eeach increase by 1 increases the number of cells by 6*(SIZE-1). For specific SIZE, the number of cells is as follows:
 SIZE   NUM_CELLS
 1  1
 2  7
 3  19
 4  27
 5  51
 
The value of SIZE is 4.

See Also:
Constant Field Values
Constructor Detail

SimulationSetupFactory

public SimulationSetupFactory()
Method Detail

getSimulationTask

protected static SimulationTask getSimulationTask(SimulationStep step)
Creates a simulation task.

Parameters:
step - SimulationStep means of time stepping the simulation
Returns:
the task, by which the simulation can later be referenced

getSimulationSetup

public static SimulationSetup getSimulationSetup()
Creates the monchrome simulation setup. The name is set to "monochrome". This the the main method for actually constructing the architecture and connections of the simulation of the neurons. It makes the cells, their connections, and decides on the fiducial cells that can be listened to. It also makes a SimulationStep to step the simulation over the collection of cells, and from that, it also make the SimulationTask.

Returns:
setup for simulation - a reference to use to get hold of cells
See Also:
SimulationSetup

getColorSimulationSetup

public static SimulationSetup getColorSimulationSetup()
Creates a simulation setup for color vision cells. The name is set to "color".

Returns:
setup for simulation - a reference to use to get hold of cells

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