11 #include "CsNeuralModule.h"
12 #include "CsConnectionGenerator.h"
42 SetSystemPointers(lpSim, lpStructure, lpModule, NULL,
true);
59 {
Std_TraceMsg(0,
"Caught Error in desctructor of CsConnectionGenerator\r\n",
"", -1,
false,
true);}
62 void CsConnectionGenerator::FromGroupID(
int iVal) {
m_iFromGroupID = iVal;}
66 void CsConnectionGenerator::ToGroupID(
int iVal) {
m_iToGroupID = iVal;}
68 int CsConnectionGenerator::ToGroupID() {
return m_iToGroupID;}
70 void CsConnectionGenerator::Plastic(
bool bVal) {
m_bPlastic = bVal;}
72 bool CsConnectionGenerator::Plastic() {
return m_bPlastic;}
74 void CsConnectionGenerator::SetSystemPointers(Simulator *m_lpSim, Structure *lpStructure, NeuralModule *lpModule, Node *lpNode,
bool bVerify)
76 AnimatBase::SetSystemPointers(m_lpSim, lpStructure, lpModule, lpNode,
false);
85 AnimatBase::VerifySystemPointers();
88 THROW_PARAM_ERROR(Al_Err_lUnableToCastNeuralModuleToDesiredType, Al_Err_strUnableToCastNeuralModuleToDesiredType,
"ID: ",
m_lpCsModule->
ID());
91 THROW_PARAM_ERROR(Al_Err_lConvertingClassToType, Al_Err_strConvertingClassToType,
"Structure: ",
m_strID);
94 void CsConnectionGenerator::SetCARLSimulation()
102 std::pair<int, int> vKey(i, j);
111 for (std::multimap<std::pair<int, int>,
CsSynapseIndividual *>::iterator it2 = itRange.first; it2 != itRange.second; ++it2)
115 if(lpSynapse->SetCARLSimulation(i, j, weight, maxWt, delay, connected))
Contains the classes for a firing rate neural model.
virtual void connect(CpuSNN *s, int srcGrpId, int i, int destGrpId, int j, float &weight, float &maxWt, float &delay, bool &connected)
specifies which synaptic connections (per group, per neuron, per synapse) should be made ...
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
int m_iFromGroupID
The ID of the pre-synaptic neuron population.
Declares the CsNeuronGroup class.
CsNeuralModule * m_lpCsModule
Pointer to parent CsNeuralModule.
virtual std::string ID()
Gets the unique GUID ID of this object.
AnimatSim::Environment::Structure * m_lpStructure
The pointer to this items parent Structure. If this is not relevant for this object then this is NULL...
std::string m_strID
The unique Id for this object.
Firing rate neural module.
std::multimap< std::pair< int, int >, CsSynapseIndividual * > m_arySynapseMap
A map relating the pre/post synaptic index to a given synapse.
Declares the synapse class.
CsConnectionGenerator()
Default constructor.
int m_iToGroupID
The ID of the post-synaptic neuron population.
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
Firing rate synapse model.
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 ~CsConnectionGenerator()
Destructor.
Contains all of CARLsim's core functionality.
bool m_bPlastic
Tells whether the connections generated by this class are plastic or fixed.