PetaVision  Alpha
ZeroV.cpp
1 /*
2  * ZeroV.cpp
3  *
4  * Created on: Oct 26, 2011
5  * Author: pschultz
6  */
7 
8 #include "ZeroV.hpp"
9 #include "columns/HyPerCol.hpp"
10 
11 namespace PV {
12 ZeroV::ZeroV() { initialize_base(); }
13 
14 ZeroV::ZeroV(char const *name, HyPerCol *hc) {
15  initialize_base();
16  initialize(name, hc);
17 }
18 
19 ZeroV::~ZeroV() {}
20 
21 int ZeroV::initialize_base() { return PV_SUCCESS; }
22 
23 int ZeroV::initialize(char const *name, HyPerCol *hc) {
24  int status = ConstantV::initialize(name, hc);
25  return status;
26 }
27 
28 void ZeroV::ioParam_valueV(enum ParamsIOFlag ioFlag) {
29  mValueV = 0.0f;
30  if (ioFlag == PARAMS_IO_READ) {
31  parent->parameters()->handleUnnecessaryParameter(name, "valueV", 0.0f /*correctValue*/);
32  }
33 }
34 
35 } // end namespace PV
virtual void ioParam_valueV(enum ParamsIOFlag ioFlag) override
valueV: ZeroV does not read valueV but sets it to zero.
Definition: ZeroV.cpp:28