PetaVision  Alpha
BaseHyPerConnProbe.hpp
1 /*
2  * BaseHyPerConnProbe.hpp
3  *
4  * Created on: Oct 28, 2014
5  * Author: pschultz
6  */
7 
8 #ifndef BASEHYPERCONNPROBE_HPP_
9 #define BASEHYPERCONNPROBE_HPP_
10 
11 #include "../connections/HyPerConn.hpp"
12 #include "BaseConnectionProbe.hpp"
13 
14 namespace PV {
15 
17  public:
18  BaseHyPerConnProbe(const char *name, HyPerCol *hc);
19  virtual ~BaseHyPerConnProbe();
20 
21  virtual Response::Status
22  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
23 
24  HyPerConn *getTargetHyPerConn() { return dynamic_cast<HyPerConn *>(mTargetConn); }
25  HyPerConn const *getTargetHyPerConn() const { return dynamic_cast<HyPerConn *>(mTargetConn); }
26 
27  protected:
29  int initialize(const char *name, HyPerCol *hc);
30  virtual bool needRecalc(double timevalue) override;
31 
37  virtual double referenceUpdateTime() const override;
38 };
39 
40 } /* namespace PV */
41 
42 #endif /* BASEHYPERCONNPROBE_HPP_ */
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
virtual bool needRecalc(double timevalue) override
virtual double referenceUpdateTime() const override