47 {
Std_TraceMsg(0,
"Caught Error in desctructor of BistableNeuron\r\n",
"", -1,
false,
true);}
155 {
return BISTABLE_NEURON;}
159 Neuron::Copy(lpSource);
196 #pragma region DataAccesMethods
205 if(strType ==
"VSTH")
207 Vsthi(atof(strValue.c_str()));
213 Il(atof(strValue.c_str()));
219 Ih(atof(strValue.c_str()));
225 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
230 void BistableNeuron::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
232 Neuron::QueryProperties(aryProperties);
234 aryProperties.Add(
new TypeProperty(
"Vsth", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
235 aryProperties.Add(
new TypeProperty(
"Il", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
236 aryProperties.Add(
new TypeProperty(
"Ih", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
241 void BistableNeuron::Load(CStdXml &oXml)
247 Vsthi(oXml.GetChildFloat(
"Vsth"));
248 Il(oXml.GetChildFloat(
"Il"));
249 Ih(oXml.GetChildFloat(
"Ih"));
float m_fltVsthi
The initial switch threshold voltage.
Firing rate neural module.
float m_fltIntrinsic
The active intrinsic current.
virtual ~BistableNeuron()
Destructor.
Bistable firing rate neuron.
Declares the bistable neuron class.
virtual float CalculateIntrinsicCurrent(FiringRateModule *lpModule, float fltInputCurrent)
Calculates the intrinsic current.
virtual void StepSimulation()
Step the simulation for this object.
virtual unsigned char NeuronType()
Gets the neuron type.
virtual void ResetSimulation()
Resets the simulation back to time 0.
float m_fltVthadd
The component added to Vthi for accomodation.
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 bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
virtual void StepSimulation()
Step the simulation for this object.
float IntrinsicCurrent()
Gets the intrinsic current.
BistableNeuron()
Default constructor.
float m_fltIl
The low current.
float Ih()
Gets the high current.
float m_fltVn
Current membrane voltage.
float m_fltIh
The high current.
float Vsthi()
Gets the threshold voltage.
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.
virtual void ResetSimulation()
Resets the simulation back to time 0.
Declares the firing rate module class.
float Il()
Gets the low current.
Contains the classes for a firing rate neural model.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
float m_fltVsth
The siwtch threshold voltage.