8 #include "ConstantLayer.hpp" 12 ConstantLayer::ConstantLayer() { initialize_base(); }
14 ConstantLayer::ConstantLayer(
const char *name, HyPerCol *hc) {
19 ConstantLayer::~ConstantLayer() {}
21 int ConstantLayer::initialize_base() {
27 int ConstantLayer::initialize(
const char *name, HyPerCol *hc) {
34 if (ioFlag == PARAMS_IO_READ) {
35 triggerLayerName =
nullptr;
42 ConstantLayer::communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) {
43 return HyPerLayer::communicateInitInfo(message);
49 assert(timestamp >= 0.0);
50 return (timestamp == 0.0);
virtual void ioParam_triggerLayerName(enum ParamsIOFlag ioFlag) override
ConstantLayer does not use triggerLayerName.
virtual bool needUpdate(double timestamp, double dt) override
int initialize(const char *name, HyPerCol *hc)
void handleUnnecessaryStringParameter(const char *group_name, const char *param_name)