PetaVision  Alpha
RescaleDelivery.hpp
1 /*
2  * RescaleDelivery.hpp
3  *
4  * Created on: Aug 24, 2017
5  * Author: Pete Schultz
6  */
7 
8 #ifndef RESCALEDELIVERY_HPP_
9 #define RESCALEDELIVERY_HPP_
10 
11 #include "delivery/IdentDelivery.hpp"
12 
13 namespace PV {
14 
20  protected:
31  void ioParam_scale(enum ParamsIOFlag ioFlag);
32 
34  // End of parameters needed from the RescaleConn class.
35 
36  public:
37  RescaleDelivery(char const *name, HyPerCol *hc);
38 
39  virtual ~RescaleDelivery() {}
40 
41  virtual void deliver() override;
42 
43  virtual void deliverUnitInput(float *recvBuffer) override;
44 
45  protected:
46  RescaleDelivery() {}
47 
48  int initialize(char const *name, HyPerCol *hc);
49 
50  virtual void setObjectType() override;
51 
52  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
53 
54  private:
55  float mScale;
56 }; // end class RescaleDelivery
57 
58 } // end namespace PV
59 
60 #endif // RESCALEDELIVERY_HPP_
void ioParam_scale(enum ParamsIOFlag ioFlag)
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override