41 #pragma region Accessor-Mutators
125 #pragma region DataAccesMethods
131 if(AnimatBase::SetData(strDataType, strValue,
false))
134 if(strType ==
"LOWCOUPLING")
140 if(strType ==
"HIGHCOUPLING")
146 if(strType ==
"TURNONTHRESHOLD")
152 if(strType ==
"TURNONSATURATE")
160 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
165 void ElectricalSynapse::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
167 AnimatBase::QueryProperties(aryProperties);
169 aryProperties.Add(
new TypeProperty(
"LowCoupling", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
170 aryProperties.Add(
new TypeProperty(
"HighCoupling", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
171 aryProperties.Add(
new TypeProperty(
"TurnOnThreshold", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
172 aryProperties.Add(
new TypeProperty(
"TurnOnSaturate", AnimatPropertyType::Float, AnimatPropertyDirection::Set));
177 void ElectricalSynapse::Load(CStdXml &oXml)
179 AnimatBase::Load(oXml);
virtual ~ElectricalSynapse()
Destructor.
double TurnOnThreshold()
Gets the turn-on threshold voltage.
double TurnOnSaturate()
Gets the turn-on saturation voltage.
double HighCoupling()
Gets the high coupling voltage.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
double m_dHiCoup
The hi coupling voltage.
ElectricalSynapse()
Default constructor.
Declares the synapse type class.
double m_dSaturateV
The saturation voltage level.
double m_dLowCoup
The low coupling voltage.
Declares the electrical synapse class.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
double m_dTurnOnV
The turn on voltage level.
double LowCoupling()
Gets the low coupling voltage.
Contains all of the classes to implement a basic integrate and fire neural model. ...