8 #include "LayerProbe.hpp" 9 #include "../layers/HyPerLayer.hpp" 13 LayerProbe::LayerProbe() {
22 LayerProbe::LayerProbe(
const char *name,
HyPerCol *hc) {
27 LayerProbe::~LayerProbe() {}
29 int LayerProbe::initialize_base() {
45 parent->parameters()->ioParamString(
46 ioFlag, name,
"targetLayer", &targetName, NULL ,
false );
48 if (targetName == NULL) {
60 targetLayer = message->lookup<
HyPerLayer>(std::string(targetName));
61 if (targetLayer == NULL) {
62 if (parent->columnId() == 0) {
64 "%s: targetLayer \"%s\" is not a layer in the column.\n",
68 MPI_Barrier(parent->getCommunicator()->communicator());
73 targetLayer->insertProbe(
this);
74 return Response::SUCCESS;
double getLastUpdateTime()
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 ...
virtual double referenceUpdateTime() const override
static bool completed(Status &a)
int initialize(const char *name, HyPerCol *hc)
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
virtual bool needRecalc(double timevalue) override
virtual void ioParam_targetName(enum ParamsIOFlag ioFlag)
targetName: the name of the object that the probe attaches to. In LayerProbe, targetName is used to d...
int initialize(const char *name, HyPerCol *hc)
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override=0