AnimatLab  2
Test
CsAdapter.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 
10 namespace AnimatCarlSim
11 {
20  class ANIMAT_CARL_SIM_PORT CsAdapter : public AnimatSim::Adapters::Adapter
21  {
22  protected:
25 
26  bool m_bStimWholePopulation;
27 
29  CStdMap<int, int> m_aryCellsToStim;
30 
33 
34  virtual void LoadCellsToStim(CStdXml &oXml);
35 
36  virtual void ApplyExternalNodeInput(int iTargetDataType, float fltRate);
37  virtual bool RateChanged(float fltRate);
38 
39  public:
40  CsAdapter();
41  virtual ~CsAdapter();
42 
43  static CsAdapter *CastToDerived(AnimatBase *lpBase) {return static_cast<CsAdapter*>(lpBase);}
44 
45  virtual void Coverage(std::string strType);
46 
47  virtual bool StimWholePopulation();
48  virtual void StimWholePopulation(bool bVal);
49 
50  virtual void CellsToStim(std::string strXml);
51 
52  virtual void Load(CStdXml &oXml);
53 
54  //ActiveItem overrides
55  virtual void Initialize();
56  virtual void ResetSimulation();
57 
58  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
59  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
60  };
61 
62 } //VortexAnimatSim
Contains the classes for a firing rate neural model.
Definition: CsAdapter.cpp:14
CsSpikeGeneratorGroup * m_lpSpikeGen
The spike generator this adapter is stimulating.
Definition: CsAdapter.h:24
CStdMap< int, int > m_aryCellsToStim
An array of neuron indices for individual neurons we want to stimulate.
Definition: CsAdapter.h:29
float m_fltPrevAppliedRate
Last applied rate.
Definition: CsAdapter.h:32
Current stimulus for neural items.
Definition: CsAdapter.h:20