AnimatLab  2
Test
SynapseType.cpp
Go to the documentation of this file.
1 
7 #include "stdafx.h"
8 #include "IonChannel.h"
9 #include "SynapseType.h"
10 #include "Connexion.h"
11 #include "CaActivation.h"
12 #include "Neuron.h"
13 #include "ElectricalSynapse.h"
15 #include "SpikingChemicalSynapse.h"
16 #include "IntegrateFireModule.h"
17 #include "ClassFactory.h"
18 #include <time.h>
19 
20 namespace IntegrateFireSim
21 {
22  namespace Synapses
23  {
24 
32 {
33  m_lpIGFModule = NULL;
34  m_iSynapseTypeID = 0;
35 }
36 
44 {
45 
46 }
47 
48 #pragma region Accessor-Mutators
49 
59 
69 
79 
80 #pragma endregion
81 
82 void SynapseType::SetSystemPointers(Simulator *lpSim, Structure *lpStructure, AnimatSim::Behavior::NeuralModule *lpModule, Node *lpNode, bool bVerify)
83 {
84  AnimatBase::SetSystemPointers(lpSim, lpStructure, lpModule, lpNode, false);
85 
86  m_lpIGFModule = dynamic_cast<IntegrateFireNeuralModule *>(lpModule);
87 
88  if(bVerify) VerifySystemPointers();
89 }
90 
92 {
93  AnimatBase::VerifySystemPointers();
94 
95  if(!m_lpIGFModule)
96  THROW_PARAM_ERROR(Al_Err_lStructureNotDefined, Al_Err_strStructureNotDefined, "IGFModule: ", m_strID);
97 }
98 
99  } //Synapses
100 } //IntegrateFireSim
Declares the integrate fire module class.
int m_iSynapseTypeID
Integre ID for the synapse type.
Definition: SynapseType.h:45
Integrate and fire neural module.
AnimatSim::Behavior::NeuralModule * m_lpModule
The pointer to this items parentNeuralModule. If this is not relevant for this object then this is NU...
Definition: AnimatBase.h:49
Declares the connexion class.
int SynapseTypeID()
Gets the synapse type identifier.
Definition: SynapseType.cpp:68
virtual void VerifySystemPointers()
Verify that system pointers have been set correctly.
Definition: SynapseType.cpp:91
Declares the spiking chemical synapse class.
std::string m_strID
The unique Id for this object.
Definition: AnimatBase.h:55
Declares the ca activation class.
Declares the synapse type class.
Declares the electrical synapse class.
void NeuralModule(IntegrateFireNeuralModule *lpModule)
Sets the NeuralModule pointer.
Definition: SynapseType.cpp:58
Contains all of the classes to implement a basic integrate and fire neural model. ...
IntegrateFireNeuralModule * m_lpIGFModule
Pointer to the parent IntegrateFireNeuralModule.
Definition: SynapseType.h:42
Declares the non spiking chemical synapse class.
Declares the neuron class.