PetaVision  Alpha
PointProbe.hpp
1 /*
2  * PointProbe.hpp
3  *
4  * Created on: Mar 10, 2009
5  * Author: rasmussn
6  */
7 
8 #ifndef POINTPROBE_HPP_
9 #define POINTPROBE_HPP_
10 
11 #include "LayerProbe.hpp"
12 
13 namespace PV {
14 
15 class PointProbe : public PV::LayerProbe {
16  public:
17  PointProbe(const char *name, HyPerCol *hc);
18  virtual ~PointProbe();
19 
20  virtual Response::Status
21  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
22 
23  virtual Response::Status outputState(double timef) override;
24 
25  protected:
26  int xLoc;
27  int yLoc;
28  int fLoc;
29  int batchLoc;
30 
31  PointProbe();
32  int initialize(const char *name, HyPerCol *hc);
33  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
34  virtual void ioParam_xLoc(enum ParamsIOFlag ioFlag);
35  virtual void ioParam_yLoc(enum ParamsIOFlag ioFlag);
36  virtual void ioParam_fLoc(enum ParamsIOFlag ioFlag);
37  virtual void ioParam_batchLoc(enum ParamsIOFlag ioFlag);
38 
44  virtual void initOutputStreams(const char *filename, Checkpointer *checkpointer) override;
45 
46  virtual void writeState(double timevalue);
47 
52  virtual void initNumValues() override;
53 
65  virtual void calcValues(double timevalue) override;
66 
67  private:
68  int initialize_base();
69 
75  inline double getV();
76 
82  inline double getA();
83 }; // end class PointProbe
84 }
85 
86 #endif /* POINTPROBE_HPP_ */
virtual void initNumValues() override
Definition: PointProbe.cpp:65
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: PointProbe.cpp:40
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
Definition: PointProbe.cpp:68
virtual void calcValues(double timevalue) override
Definition: PointProbe.cpp:170
virtual void initOutputStreams(const char *filename, Checkpointer *checkpointer) override
Definition: PointProbe.cpp:121
virtual Response::Status outputState(double timef) override
Definition: PointProbe.cpp:164