8 #include "CloneDeliveryFacade.hpp" 9 #include "columns/HyPerCol.hpp" 10 #include "components/CloneWeightsPair.hpp" 11 #include "utils/MapLookupByType.hpp" 15 CloneDeliveryFacade::CloneDeliveryFacade(
char const *name, HyPerCol *hc) { initialize(name, hc); }
17 CloneDeliveryFacade::CloneDeliveryFacade() {}
19 CloneDeliveryFacade::~CloneDeliveryFacade() {}
21 int CloneDeliveryFacade::initialize(
char const *name, HyPerCol *hc) {
22 return HyPerDeliveryFacade::initialize(name, hc);
25 void CloneDeliveryFacade::setObjectType() { mObjectType =
"CloneDeliveryFacade"; }
27 Response::Status CloneDeliveryFacade::communicateInitInfo(
28 std::shared_ptr<CommunicateInitInfoMessage const> message) {
29 auto status = HyPerDeliveryFacade::communicateInitInfo(message);
33 if (mUpdateGSynFromPostPerspective) {
34 auto *cloneWeightsPair =
35 mapLookupByType<CloneWeightsPair>(message->mHierarchy, getDescription());
36 pvAssert(cloneWeightsPair);
37 cloneWeightsPair->synchronizeMarginsPost();
39 return Response::SUCCESS;
static bool completed(Status &a)