11 #include "CsNeuralModule.h"
12 #include "CsSynapseFull.h"
25 m_bNoDirectConnect =
false;
41 {
Std_TraceMsg(0,
"Caught Error in desctructor of CsSynapseOneToOne\r\n",
"", -1,
false,
true);}
44 void CsSynapseFull::NoDirectConnect(
bool bVal) {m_bNoDirectConnect = bVal;}
46 bool CsSynapseFull::NoDirectConnect() {
return m_bNoDirectConnect;}
48 void CsSynapseFull::SetCARLSimulation()
52 if(m_bNoDirectConnect)
59 #pragma region DataAccesMethods
68 if(strType ==
"NODIRECTCONNECT")
76 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
81 void CsSynapseFull::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
83 CsSynapseGroup::QueryProperties(aryProperties);
85 aryProperties.Add(
new TypeProperty(
"NoDirectConnect", AnimatPropertyType::Boolean, AnimatPropertyDirection::Set));
90 void CsSynapseFull::Load(CStdXml &oXml)
92 CsSynapseGroup::Load(oXml);
96 NoDirectConnect(oXml.GetChildBool(
"NoDirectConnect", m_bNoDirectConnect));
Contains the classes for a firing rate neural model.
bool m_bPlastic
connection type, either SYN_FIXED or SYN_PLASTIC
CsSynapseFull()
Default constructor.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
float m_fltInitWt
initial weight strength (arbitrary units); should be negative for inhibitory connections ...
int connect(int gIDpre, int gIDpost, const string &_type, float initWt, float maxWt, float _C, uint8_t minDelay, uint8_t maxDelay, bool synWtType=SYN_FIXED, const string &wtType=" ")
make from each neuron in grpId1 to 'numPostSynapses' neurons in grpId2
Declares the CsNeuronGroup class.
CsNeuronGroup * m_lpFromNeuron
The pointer to pre-synaptic neuron.
unsigned char m_iMinDelay
the minimum delay allowed (ms)
virtual ~CsSynapseFull()
Destructor.
int m_iSynapsesCreated
The total number of synapses created.
Declares the synapse class.
bool Std_ToBool(int iVal)
Converts a value toa bool.
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.
CsNeuronGroup * m_lpToNeuron
The pointer to post-synaptic neuron.
float m_fltMaxWt
upper bound on weight strength (arbitrary units); should be negative for inhibitory connections ...
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
unsigned char m_iMaxDelay
the maximum delay allowed (ms)
CsNeuralModule * m_lpCsModule
Pointer to parent CsNeuralModule.
float m_fltPconnect
connection probability