PetaVision  Alpha
RescaleConn.cpp
1 /*
2  * RescaleConn.cpp
3  *
4  * Created on: Apr 15, 2016
5  * Author: pschultz
6  */
7 
8 #include "RescaleConn.hpp"
9 #include "delivery/RescaleDelivery.hpp"
10 
11 namespace PV {
12 
13 RescaleConn::RescaleConn() {}
14 
15 RescaleConn::RescaleConn(const char *name, HyPerCol *hc) { initialize(name, hc); }
16 
17 int RescaleConn::initialize(const char *name, HyPerCol *hc) {
18  int status = IdentConn::initialize(name, hc);
19  return status;
20 }
21 
22 BaseDelivery *RescaleConn::createDeliveryObject() {
23  BaseObject *baseObject = Factory::instance()->createByKeyword("RescaleDelivery", name, parent);
24  RescaleDelivery *deliveryObject = dynamic_cast<RescaleDelivery *>(baseObject);
25  pvAssert(deliveryObject);
26  return deliveryObject;
27 }
28 
29 } // end of namespace PV block