AnimatLab  2
Test
CsSynapseIndividual.h
1 
7 #pragma once
8 
9 namespace AnimatCarlSim
10 {
11 
22  class ANIMAT_CARL_SIM_PORT CsSynapseIndividual : public CsSynapseGroup
23  {
24  protected:
27 
29  int m_iToIdx;
30 
32  //CStdIPoint m_iSynpaseKey;
33  std::pair<int, int> m_vSynapseKey;
34 
35  public:
37  virtual ~CsSynapseIndividual();
38 
39  virtual void FromIdx(int iVal);
40  virtual int FromIdx();
41 
42  virtual void ToIdx(int iVal);
43  virtual int ToIdx();
44 
45  virtual std::pair<int, int> SynapseIndexKey();
46 
47  virtual void SetCARLSimulation();
48  virtual bool SetCARLSimulation(int iFromIdx, int iToIdx, float& weight, float& maxWt, float& delay, bool& connected);
49 
50 #pragma region DataAccesMethods
51  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
52  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
53 #pragma endregion
54 
55  virtual void Load(CStdXml &oXml);
56 
57  };
58 
59 } //AnimatCarlSim
Contains the classes for a firing rate neural model.
Definition: CsAdapter.cpp:14
std::pair< int, int > m_vSynapseKey
The synapse index key used in the synapse map.
int m_iToIdx
The Jth neuron of the post-synaptic group to connect.
Firing rate synapse model.
int m_iFromIdx
The Ith neuron of the pre-synaptic group to connect.
Firing rate synapse model.