10 #include "columns/BaseObject.hpp" 11 #include "include/pv_common.h" 12 #include "io/FileStream.hpp" 39 virtual Response::Status
40 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override = 0;
75 virtual Response::Status
outputState(
double timef) = 0;
76 virtual int writeTimer(
PrintStream &stream) {
return PV_SUCCESS; }
119 void getValues(
double timevalue,
double *valuesVector);
127 void getValues(
double timevalue, std::vector<double> *valuesVector);
139 double getValue(
double timevalue,
int index);
145 virtual void setObjectType()
override;
246 virtual bool needRecalc(
double timevalue) = 0;
268 virtual void calcValues(
double timevalue) = 0;
342 virtual bool needUpdate(
double time,
double dt);
345 int initialize_base();
350 std::vector<PrintStream *> mOutputStreams;
353 char *triggerLayerName;
355 double triggerOffset;
365 char *probeOutputFilename;
368 double lastUpdateTime;
370 bool mInitInfoCommunicatedFlag =
false;
371 bool mDataStructuresAllocatedFlag =
false;
virtual void ioParam_coefficient(enum ParamsIOFlag ioFlag)
coefficient: If energyProbe is set, the coefficient parameter specifies that ColumnEnergyProbe multip...
double getLastUpdateTime()
double getValue(double timevalue, int index)
virtual void calcValues(double timevalue)=0
const char * getTargetName()
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
char const * getProbeOutputFilename()
virtual void ioParam_message(enum ParamsIOFlag ioFlag)
message: A string parameter that is typically included in the lines output by the outputState method ...
PrintStream & output(int b)
virtual double referenceUpdateTime() const =0
virtual Response::Status outputState(double timef)=0
virtual void ioParam_energyProbe(enum ParamsIOFlag ioFlag)
energyProbe: If nonblank, specifies the name of a ColumnEnergyProbe that this probe contributes an en...
virtual void ioParam_triggerFlag(enum ParamsIOFlag ioFlag)
triggerFlag: If false, the needUpdate method always returns true, so that outputState is called every...
virtual void initNumValues()
virtual bool needRecalc(double timevalue)=0
double * getValuesBuffer()
bool isWritingToFile() const
virtual void ioParam_triggerOffset(enum ParamsIOFlag ioFlag)
triggerOffset: If triggerFlag is true, triggerOffset specifies the time interval before the triggerLa...
virtual void initOutputStreams(const char *filename, Checkpointer *checkpointer)
const char * getMessage()
virtual bool needUpdate(double time, double dt)
virtual void ioParam_textOutputFlag(enum ParamsIOFlag ioFlag)
textOutputFlag: A boolean parameter that sets whether to generate an output file. Defaults to true...
virtual Response::Status registerData(Checkpointer *checkpointer) override
char const * getEnergyProbe()
virtual Response::Status outputStateWrapper(double timef, double dt)
void getValues(double timevalue, double *valuesVector)
virtual void ioParam_probeOutputFile(enum ParamsIOFlag ioFlag)
probeOutputFile: If textOutputFlag is true, probeOutputFile specifies the name of the file that the o...
virtual void ioParam_triggerLayerName(enum ParamsIOFlag ioFlag)
triggerLayerName: If triggerFlag is true, triggerLayerName specifies the layer to check for triggerin...
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...
bool getTextOutputFlag() const
int initialize(const char *name, HyPerCol *hc)
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override=0
virtual int initMessage(const char *msg)