PetaVision  Alpha
DependentPatchSize.hpp
1 /*
2  * DependentPatchSize.hpp
3  *
4  * Created on: Jan 5, 2018
5  * Author: pschultz
6  */
7 
8 #ifndef DEPENDENTPATCHSIZE_HPP_
9 #define DEPENDENTPATCHSIZE_HPP_
10 
11 #include "components/PatchSize.hpp"
12 
13 namespace PV {
14 
19 class DependentPatchSize : public PatchSize {
20  protected:
31  virtual void ioParam_nxp(enum ParamsIOFlag ioFlag) override;
32 
37  virtual void ioParam_nyp(enum ParamsIOFlag ioFlag) override;
38 
43  virtual void ioParam_nfp(enum ParamsIOFlag ioFlag) override;
44  // end of DependentPatchSize parameters
46 
47  public:
48  DependentPatchSize(char const *name, HyPerCol *hc);
49  virtual ~DependentPatchSize();
50 
51  virtual void setObjectType() override;
52 
53  protected:
55 
56  int initialize(char const *name, HyPerCol *hc);
57 
58  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
59 
60  virtual Response::Status
61  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
62 
63  char const *getOriginalConnName(std::map<std::string, Observer *> const hierarchy) const;
64  PatchSize *getOriginalPatchSize(
65  std::map<std::string, Observer *> const hierarchy,
66  char const *originalConnName) const;
67 
68  virtual void setPatchSize(PatchSize *originalPatchSize);
69 
70 }; // class DependentPatchSize
71 
72 } // namespace PV
73 
74 #endif // DEPENDENTPATCHSIZE_HPP_
virtual void ioParam_nxp(enum ParamsIOFlag ioFlag) override
nxp: DependentPatchSize does not read the nxp parameter, but copies it from the original connection...
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
If nfp was set to a negative number in params, set it here to the postsynaptic layer&#39;s nf...
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_nfp(enum ParamsIOFlag ioFlag) override
nfp: DependentPatchSize does not read the nfp parameter, but copies it from the original connection...
virtual void ioParam_nyp(enum ParamsIOFlag ioFlag) override
nyp: DependentPatchSize does not read the nyp parameter, but copies it from the original connection...