11 #include "CsSpikeGeneratorGroup.h"
12 #include "CsNeuralModule.h"
25 m_lpSpikeRates = NULL;
43 {
Std_TraceMsg(0,
"Caught Error in desctructor of CsSpikeGeneratorGroup\r\n",
"", -1,
false,
true);}
48 CsNeuronGroup::Copy(lpSource);
54 void CsSpikeGeneratorGroup::DeletePoissonRates()
58 delete m_lpSpikeRates;
59 m_lpSpikeRates = NULL;
63 void CsSpikeGeneratorGroup::SetSpikeRatesUpdated()
68 void CsSpikeGeneratorGroup::SetCARLSimulation()
79 m_lpSpikeRates->rates[i] = 0;
103 #pragma region DataAccesMethods
115 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
120 void CsSpikeGeneratorGroup::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
122 CsNeuronGroup::QueryProperties(aryProperties);
128 void CsSpikeGeneratorGroup::Load(CStdXml &oXml)
130 CsNeuronGroup::Load(oXml);
Contains the classes for a firing rate neural model.
virtual void AddExternalNodeInput(int iTargetDataType, float fltInput)
Adds an external node input.
Declares the CsNeuronGroup class.
unsigned int m_uiNeuronCount
The number of neurons in this group.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
void setSpikeMonitor(int gid, SpikeMonitor *spikeMon=NULL, int configId=ALL)
unsigned int m_uiRefPeriod
The refractory period.
int m_iGroupID
The group ID of this set of neurons.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
int createSpikeGeneratorGroup(const string &_name, int unsigned size_n, int stype, int configId=ALL)
creates a spike generator group (dummy-neurons, not Izhikevich spiking neurons).
virtual void Initialize()
Initializes this object.
virtual void Initialize()
Initializes this object.
CsNeuralModule * m_lpCsModule
Pointer to parent CsNeuralModule.
Declares the synapse class.
CsSpikeGeneratorGroup()
Default constructor.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual ~CsSpikeGeneratorGroup()
Destructor.
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
virtual void StepSimulation()
Step the simulation for this object.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
Firing Rate Neuron model.
std::string m_strName
The name for this object.