10 #include "ModulateNeuronPropSynapse.h"
45 {
Std_TraceMsg(0,
"Caught Error in desctructor of ModulateNeuronPropSynapse\r\n",
"", -1,
false,
true);}
74 void ModulateNeuronPropSynapse::ModulationGain(std::string strXml)
77 oXml.Deserialize(strXml);
78 oXml.FindElement(
"Root");
79 oXml.FindChildElement(
"Gain");
121 #pragma region DataAccesMethods
127 if(Link::SetData(strDataType, strValue,
false))
130 if(strType ==
"GAIN")
132 ModulationGain(strValue);
136 if(strType ==
"PROPERTYNAME")
144 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
167 void ModulateNeuronPropSynapse::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
169 Synapse::QueryProperties(aryProperties);
171 aryProperties.Add(
new TypeProperty(
"Gain", AnimatPropertyType::Xml, AnimatPropertyDirection::Set));
172 aryProperties.Add(
new TypeProperty(
"PropertyName", AnimatPropertyType::String, AnimatPropertyDirection::Set));
181 void ModulateNeuronPropSynapse::Load(CStdXml &oXml)
Neuron * m_lpToNeuron
The pointer to post-synaptic neuron.
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
virtual void Initialize()
Initializes this object.
Simulator * m_lpSim
The pointer to a Simulation.
virtual void ResetSimulation()
Resets the simulation back to time 0.
std::string m_strPropertyName
The name of the property we are modulating.
AnimatSim::Gains::Gain * m_lpGain
Pointer to the graph used to calculate the hi current.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
virtual ~ModulateNeuronPropSynapse()
Destructor.
ModulateNeuronPropSynapse()
Default constructor.
virtual float FiringFreq(FiringRateModule *lpModule)
Calculates the current firing frequency.
Declares the synapse class.
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.
Declares the firing rate module class.
virtual void Process(float &fltCurrent)
Processes this synapse.
Neuron * FromNeuron()
Gets the pre-synaptic neuron.
bool Std_IsBlank(std::string strVal)
Trims a string and tests if a string is blank.
FiringRateModule * m_lpFRModule
Pointer to parent FiringRateModule.
Contains the classes for a firing rate neural model.
float * m_lpPropertyData
Pointer to the property we are modulating.
virtual float CalculateGain(float fltInput)=0
Calculates the gain.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
virtual std::string PropertyName()
Gets the name of the property that this adapter will be setting.
Gain * LoadGain(Simulator *lpSim, std::string strName, CStdXml &oXml)
Loads a gain object.
virtual void Initialize()
Initializes this object.