AnimatLab  2
Test
FiringRateModule.h
Go to the documentation of this file.
1 
7 #pragma once
8 
12 namespace FiringRateSim
13 {
31  {
32  protected:
34  CStdIPoint m_oNetworkSize;
35 
37  CStdPtrArray<Neuron> m_aryNeurons;
38 
42 
43  Neuron *LoadNeuron(CStdXml &oXml);
44  void LoadNetworkXml(CStdXml &oXml);
45 
46  public:
48  virtual ~FiringRateModule();
49 
58  virtual std::string ModuleName();
59 
60  virtual void Kill(bool bState = true);
61  virtual void Initialize();
62  virtual void ResetSimulation();
63  virtual void StepSimulation();
64  virtual void Load(CStdXml &oXml);
65 
66 #pragma region DataAccesMethods
67  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
68  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
69  virtual bool AddItem(const std::string &strItemType, const std::string &strXml, bool bThrowError = true, bool bDoNotInit = false);
70  virtual bool RemoveItem(const std::string &strItemType, const std::string &strID, bool bThrowError = true);
71 #pragma endregion
72 
73  virtual void AddNeuron(std::string strXml, bool bDoNotInit = false);
74  virtual void RemoveNeuron(std::string strID, bool bThrowError = true);
75  virtual int FindNeuronListPos(std::string strID, bool bThrowError = true);
76 
77  bool ActiveArray();
78  void ActiveArray(bool bVal);
79  bool InactiveArray();
80  void InactiveArray(bool bVal);
81 
82 #pragma region SnapshotMethods
83  virtual long CalculateSnapshotByteSize();
84  virtual void SaveKeyFrameSnapshot(byte *aryBytes, long &lIndex);
85  virtual void LoadKeyFrameSnapshot(byte *aryBytes, long &lIndex);
86 #pragma endregion
87 
88  };
89 
90 } //FiringRateSim
Firing rate neural module.
CStdIPoint m_oNetworkSize
Size of the neural network.
CStdPtrArray< Neuron > m_aryNeurons
The array of neurons in this module.
Contains the classes for a firing rate neural model.