21 const std::vector<double> ¶ms,
const std::vector<NewModels::VarInit> &varInitialisers) :
23 m_CurrentSourceModel(currentSourceModel), m_Params(params), m_VarInitialisers(varInitialisers),
43 const std::string &
getName()
const{
return m_Name; }
48 const std::vector<double> &
getParams()
const{
return m_Params; }
84 std::vector<double> m_Params;
85 std::vector<double> m_DerivedParams;
86 std::vector<NewModels::VarInit> m_VarInitialisers;
89 std::vector<VarMode> m_VarMode;
const std::string & getName() const
Definition: currentSource.h:43
bool isSimRNGRequired() const
Does this current source require an RNG to simulate.
Definition: currentSource.cc:67
bool canRunOnCPU() const
Can this current source run on the CPU?
Definition: currentSource.cc:99
VarMode getVarMode(size_t index) const
Get variable mode used by current source model state variable.
Definition: currentSource.h:56
Base class for all current source models.
Definition: currentSourceModels.h:28
bool isInitCodeRequired() const
Does this current source require any initialisation code to be run.
Definition: currentSource.cc:57
const std::vector< double > & getDerivedParams() const
Definition: currentSource.h:49
const std::vector< double > & getParams() const
Definition: currentSource.h:48
void addExtraGlobalParams(std::map< std::string, std::string > &kernelParameters) const
Definition: currentSource.cc:44
VarMode
Definition: variableMode.h:25
Global header file containing a few global variables. Part of the code generation section...
name
Definition: setup.py:112
void setVarMode(const std::string &varName, VarMode mode)
Set variable mode of neuron model state variable.
Definition: currentSource.cc:16
VarMode defaultVarMode
What is the default behaviour for model state variables? Historically, everything was allocated on bo...
Definition: global.cc:43
const CurrentSourceModels::Base * getCurrentSourceModel() const
Gets the current source model used by this group.
Definition: currentSource.h:46
bool isInitRNGRequired(VarInit varInitMode) const
Does this current source group require an RNG for it's init code.
Definition: currentSource.cc:78
CurrentSource(const std::string &name, const CurrentSourceModels::Base *currentSourceModel, const std::vector< double > ¶ms, const std::vector< NewModels::VarInit > &varInitialisers)
Definition: currentSource.h:20
const std::vector< NewModels::VarInit > & getVarInitialisers() const
Definition: currentSource.h:50
bool isDeviceVarInitRequired() const
Is device var init code required for any variables in this current source.
Definition: currentSource.cc:88
void initDerivedParams(double dt)
Definition: currentSource.cc:26
VarMode getVarMode(const std::string &varName) const
Get variable mode used by current source model state variable.
Definition: currentSource.cc:21
VarInit
Definition: variableMode.h:18
Definition: currentSource.h:17