8 #include "IonChannel.h"
24 THROW_ERROR(Al_Err_lParentNotDefined, Al_Err_strParentNotDefined);
44 if(AnimatBase::SetData(strDataType, strValue,
false))
47 if(strType ==
"MIDPOINT")
56 if(strType ==
"SLOPE")
65 if(strType ==
"TIMECONSTANT")
76 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
81 void CaActivation::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
83 AnimatBase::QueryProperties(aryProperties);
85 aryProperties.Add(
new TypeProperty(
"Midpoint", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
86 aryProperties.Add(
new TypeProperty(
"Slope", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
87 aryProperties.Add(
new TypeProperty(
"TimeConstant", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
90 void CaActivation::Load(CStdXml &oXml)
92 AnimatBase::Load(oXml);
96 float fltVal = oXml.GetChildFloat(
"MidPoint");
102 fltVal = oXml.GetChildFloat(
"Slope");
109 fltVal = oXml.GetChildFloat(
"TimeConstant");
Declares the integrate fire module class.
void BurstHTimeConstant(double dVal)
Sets the burst inactivation time constant.
Declares the connexion class.
Integrate and fire neuron model.
Declares the spiking chemical synapse class.
std::string Std_Trim(std::string strVal)
Trims a string.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
Declares the ca activation class.
virtual ~CaActivation()
Destructor.
Declares the synapse type class.
void BurstVh(double dVal)
Sets the burst inactivation mid point.
void BurstSh(double dVal)
Sets the burst inactivation slope.
void BurstMTimeConstant(double dVal)
Gets the burst activation time constant.
Declares the electrical synapse class.
void BurstSm(double dVal)
Sets the burst Activation slope.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
CaActivation(Neuron *lpParent, std::string strActivationType)
Constructor.
Neuron * m_lpParent
Pointer to the parent Neuron.
std::string m_strActivationType
Type of the activation.
void BurstVm(double dVal)
Sets the burst activation mid point.
std::string Std_ToUpper(std::string strVal)
Converts a string to upper case.
Contains all of the classes to implement a basic integrate and fire neural model. ...
Declares the non spiking chemical synapse class.
Declares the neuron class.