GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
NeuronModels::SpikeSourceArray Class Reference

Spike source array. More...

#include <newNeuronModels.h>

Inheritance diagram for NeuronModels::SpikeSourceArray:
NeuronModels::Base NewModels::Base Snippet::Base

Public Types

typedef Snippet::ValueBase< 0 > ParamValues
 
typedef NewModels::VarInitContainerBase< 2 > VarValues
 
typedef NewModels::VarInitContainerBase< 0 > PreVarValues
 
typedef NewModels::VarInitContainerBase< 0 > PostVarValues
 
- Public Types inherited from Snippet::Base
typedef std::function< double(const std::vector< double > &, double)> DerivedParamFunc
 
typedef std::vector< std::string > StringVec
 
typedef std::vector< std::pair< std::string, std::string > > StringPairVec
 
typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > NameTypeValVec
 
typedef std::vector< std::pair< std::string, DerivedParamFunc > > DerivedParamVec
 

Public Member Functions

virtual std::string getSimCode () const override
 Gets the code that defines the execution of one timestep of integration of the neuron model. More...
 
virtual std::string getThresholdConditionCode () const override
 Gets code which defines the condition for a true spike in the described neuron model. More...
 
virtual std::string getResetCode () const override
 Gets code that defines the reset action taken after a spike occurred. This can be empty. More...
 
virtual StringPairVec getVars () const override
 Gets names and types (as strings) of model variables. More...
 
virtual StringPairVec getExtraGlobalParams () const override
 
- Public Member Functions inherited from NeuronModels::Base
virtual std::string getSupportCode () const
 Gets support code to be made available within the neuron kernel/funcion. More...
 
virtual NewModels::Base::NameTypeValVec getAdditionalInputVars () const
 
- Public Member Functions inherited from NewModels::Base
size_t getVarIndex (const std::string &varName) const
 Find the index of a named variable. More...
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 
virtual StringVec getParamNames () const
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const
 

Static Public Member Functions

static const NeuronModels::SpikeSourceArraygetInstance ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from NewModels::Base
static size_t getVarIndex (const std::string &varName, const StringPairVec &vars)
 

Detailed Description

Spike source array.

A neuron which reads spike times from a global spikes array It has 2 variables:

  • startSpike - Index of the next spike in the global array
  • endSpike - Index of the spike next to the last in the globel array

and 1 global parameter:

  • spikeTimes - Array with all spike times

Member Typedef Documentation

◆ ParamValues

◆ PostVarValues

◆ PreVarValues

◆ VarValues

Member Function Documentation

◆ getExtraGlobalParams()

virtual StringPairVec NeuronModels::SpikeSourceArray::getExtraGlobalParams ( ) const
inlineoverridevirtual

Gets names and types (as strings) of additional per-population parameters for the weight update model.

Reimplemented from NeuronModels::Base.

◆ getInstance()

static const NeuronModels::SpikeSourceArray* NeuronModels::SpikeSourceArray::getInstance ( )
inlinestatic

◆ getResetCode()

virtual std::string NeuronModels::SpikeSourceArray::getResetCode ( ) const
inlineoverridevirtual

Gets code that defines the reset action taken after a spike occurred. This can be empty.

Reimplemented from NeuronModels::Base.

◆ getSimCode()

virtual std::string NeuronModels::SpikeSourceArray::getSimCode ( ) const
inlineoverridevirtual

Gets the code that defines the execution of one timestep of integration of the neuron model.

The code will refer to for the value of the variable with name "NN". It needs to refer to the predefined variable "ISYN", i.e. contain , if it is to receive input.

Reimplemented from NeuronModels::Base.

◆ getThresholdConditionCode()

virtual std::string NeuronModels::SpikeSourceArray::getThresholdConditionCode ( ) const
inlineoverridevirtual

Gets code which defines the condition for a true spike in the described neuron model.

This evaluates to a bool (e.g. "V > 20").

Reimplemented from NeuronModels::Base.

◆ getVars()

virtual StringPairVec NeuronModels::SpikeSourceArray::getVars ( ) const
inlineoverridevirtual

Gets names and types (as strings) of model variables.

Reimplemented from NewModels::Base.


The documentation for this class was generated from the following file: