Nengo.ca

ca.nengo.model.neuron.impl
Class SpikingNeuronFactory

java.lang.Object
  extended by ca.nengo.model.neuron.impl.SpikingNeuronFactory
All Implemented Interfaces:
NodeFactory, java.io.Serializable

public class SpikingNeuronFactory
extends java.lang.Object
implements NodeFactory

Creates spiking neurons by delegating to a SynapticIntegratorFactory and a SpikeGeneratorFactory.

See Also:
Serialized Form

Constructor Summary
SpikingNeuronFactory(SynapticIntegratorFactory intFact, SpikeGeneratorFactory genFact, PDF scale, PDF bias)
           
 
Method Summary
 SpikeGeneratorFactory getGeneratorFactory()
           
 SynapticIntegratorFactory getIntegratorFactory()
           
 java.lang.String getTypeDescription()
           
 Node make(java.lang.String name)
           
 void setGeneratorFactory(SpikeGeneratorFactory factory)
           
 void setIntegratorFactory(SynapticIntegratorFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpikingNeuronFactory

public SpikingNeuronFactory(SynapticIntegratorFactory intFact,
                            SpikeGeneratorFactory genFact,
                            PDF scale,
                            PDF bias)
Parameters:
intFact - Synaptic integrator factory
genFact - Spike generator factory
scale - PDF for neuron gain
bias - PDF for bias current
Method Detail

getIntegratorFactory

public SynapticIntegratorFactory getIntegratorFactory()
Returns:
integrator factory

setIntegratorFactory

public void setIntegratorFactory(SynapticIntegratorFactory factory)
Parameters:
factory - integrator factory

getGeneratorFactory

public SpikeGeneratorFactory getGeneratorFactory()
Returns:
spike generator factory

setGeneratorFactory

public void setGeneratorFactory(SpikeGeneratorFactory factory)
Parameters:
factory - spike generator factory

getTypeDescription

public java.lang.String getTypeDescription()
Specified by:
getTypeDescription in interface NodeFactory
Returns:
A short description of the type of Node created by this factory
See Also:
NodeFactory.getTypeDescription()

make

public Node make(java.lang.String name)
          throws StructuralException
Specified by:
make in interface NodeFactory
Parameters:
name - The name of the Node (unique within containing Ensemble or Network)
Returns:
A new Node
Throws:
StructuralException - for any problem that prevents construction
See Also:
NodeFactory.make(java.lang.String)

Nengo.ca