PetaVision  Alpha
BaseWeightUpdater.cpp
1 /*
2  * BaseWeightUpdater.cpp
3  *
4  * Created on: Nov 29, 2017
5  * Author: Pete Schultz
6  */
7 
8 #include "BaseWeightUpdater.hpp"
9 #include "columns/HyPerCol.hpp"
10 #include "utils/MapLookupByType.hpp"
11 
12 namespace PV {
13 
14 BaseWeightUpdater::BaseWeightUpdater(char const *name, HyPerCol *hc) { initialize(name, hc); }
15 
16 int BaseWeightUpdater::initialize(char const *name, HyPerCol *hc) {
17  return BaseObject::initialize(name, hc);
18 }
19 
20 void BaseWeightUpdater::setObjectType() { mObjectType = "Updater for "; }
21 
22 int BaseWeightUpdater::ioParamsFillGroup(enum ParamsIOFlag ioFlag) {
23  ioParam_plasticityFlag(ioFlag);
24  return PV_SUCCESS;
25 }
26 
27 void BaseWeightUpdater::ioParam_plasticityFlag(enum ParamsIOFlag ioFlag) {
28  parent->parameters()->ioParamValue(
29  ioFlag, name, "plasticityFlag", &mPlasticityFlag, mPlasticityFlag /*default value*/);
30 }
31 
32 } // namespace PV
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_plasticityFlag(enum ParamsIOFlag ioFlag)
plasticityFlag: Specifies if the weights will update