PetaVision  Alpha
WTADelivery.hpp
1 /*
2  * WTADelivery.hpp
3  *
4  * Created on: Aug 15, 2018
5  * Author: Pete Schultz
6  */
7 
8 #ifndef WTADELIVERY_HPP_
9 #define WTADELIVERY_HPP_
10 
11 #include "BaseDelivery.hpp"
12 #include "components/SingleArbor.hpp"
13 
14 namespace PV {
15 
26 class WTADelivery : public BaseDelivery {
27  protected:
37  virtual void ioParam_receiveGpu(enum ParamsIOFlag ioFlag) override; // End of list of WTADelivery parameters.
39 
40  public:
41  WTADelivery(char const *name, HyPerCol *hc);
42 
43  virtual ~WTADelivery() {}
44 
45  virtual void deliver() override;
46 
47  virtual void deliverUnitInput(float *recvBuffer) override;
48 
49  virtual bool isAllInputReady() override;
50 
51  protected:
52  WTADelivery() {}
53 
54  int initialize(char const *name, HyPerCol *hc);
55 
56  virtual void setObjectType() override;
57 
58  virtual Response::Status
59  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
60 
67 
68  protected:
69  int mDelay = 0;
70 
71 }; // end class WTADelivery
72 
73 } // end namespace PV
74 
75 #endif // WTADELIVERY_HPP_
virtual bool isAllInputReady() override
virtual void ioParam_receiveGpu(enum ParamsIOFlag ioFlag) override
WTADelivery does not use the GPU. It is an error to set receiveGpu to true.
Definition: WTADelivery.cpp:23
void checkPreAndPostDimensions()
Definition: WTADelivery.cpp:48