73 #pragma region DataAccesMethods
79 if(strType ==
"MODULATION")
92 if(strType ==
"GATEINITIALLYON")
100 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
105 void GatedSynapse::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
107 Synapse::QueryProperties(aryProperties);
109 aryProperties.Add(
new TypeProperty(
"Modulation", AnimatPropertyType::Float, AnimatPropertyDirection::Get));
111 aryProperties.Add(
new TypeProperty(
"GateInitiallyOn", AnimatPropertyType::Boolean, AnimatPropertyDirection::Set));
116 void GatedSynapse::Load(CStdXml &oXml)
GatedSynapse()
Default constructor.
virtual float CalculateModulation(FiringRateModule *lpModule)
Calculates the synaptic modulation.
Firing rate neural module.
Neuron * m_lpFromNeuron
The pointer to pre-synaptic neuron.
float m_fltWeight
The weight of the synapse. This is a current value in nanoamps.
Declares the gated synapse class.
unsigned char m_iInitialGateValue
Tells whether the gate is initially open or closed.
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 float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
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 float FiringFreq(FiringRateModule *lpModule)
Calculates the current firing frequency.
Declares the synapse class.
bool Std_ToBool(int iVal)
Converts a value toa bool.
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
Declares the firing rate module class.
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
virtual unsigned char InitialGateValue()
Gets the initial gate value.
virtual ~GatedSynapse()
Destructor.
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_fltModulation
The modulation value to use for this synapse.
std::string m_strType
The type for this object. Examples are Box, Plane, Neuron, etc..