PetaVision  Alpha
LayerProbe.hpp
1 /*
2  * LayerProbe.h
3  *
4  * Created on: Mar 7, 2009
5  * Author: rasmussn
6  */
7 
8 #ifndef LAYERPROBE_HPP_
9 #define LAYERPROBE_HPP_
10 
11 #include "BaseProbe.hpp"
12 #include "io/fileio.hpp"
13 #include <stdio.h>
14 
15 namespace PV {
16 
17 class HyPerCol;
18 class HyPerLayer;
19 
20 typedef enum { BufV, BufActivity } PVBufType;
21 
25 class LayerProbe : public BaseProbe {
26 
27  // Methods
28  public:
29  LayerProbe(const char *name, HyPerCol *hc);
30  virtual ~LayerProbe();
31 
39  virtual Response::Status
40  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
41 
42  HyPerLayer *getTargetLayer() { return targetLayer; }
43 
44  protected:
45  LayerProbe();
46  int initialize(const char *name, HyPerCol *hc);
47 
61  virtual void ioParam_targetName(enum ParamsIOFlag ioFlag) override;
69  virtual bool needRecalc(double timevalue) override;
70 
75  virtual double referenceUpdateTime() const override;
76 
77  private:
78  int initialize_base();
79 
80  // Member variables
81  protected:
82  HyPerLayer *targetLayer;
83 };
84 }
85 
86 #endif /* LAYERPROBE_HPP_ */
virtual void ioParam_targetName(enum ParamsIOFlag ioFlag) override
targetName: the name of the layer to attach the probe to. In LayerProbes, targetLayer can be used in ...
Definition: LayerProbe.cpp:43
virtual double referenceUpdateTime() const override
Definition: LayerProbe.cpp:81
int initialize(const char *name, HyPerCol *hc)
Definition: LayerProbe.cpp:38
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
Definition: LayerProbe.cpp:54
virtual bool needRecalc(double timevalue) override
Definition: LayerProbe.cpp:77