PetaVision  Alpha
SingleArbor.cpp
1 /*
2  * SingleArbor.cpp
3  *
4  * Created on: Jan 5, 2018
5  * Author: pschultz
6  */
7 
8 #include "SingleArbor.hpp"
9 #include "columns/HyPerCol.hpp"
10 #include "columns/ObjectMapComponent.hpp"
11 #include "components/OriginalConnNameParam.hpp"
12 #include "connections/HyPerConn.hpp"
13 #include "utils/MapLookupByType.hpp"
14 
15 namespace PV {
16 
17 SingleArbor::SingleArbor(char const *name, HyPerCol *hc) { initialize(name, hc); }
18 
19 SingleArbor::SingleArbor() {}
20 
21 SingleArbor::~SingleArbor() {}
22 
23 int SingleArbor::initialize(char const *name, HyPerCol *hc) {
24  return ArborList::initialize(name, hc);
25 }
26 
27 void SingleArbor::setObjectType() { mObjectType = "SingleArbor"; }
28 
29 int SingleArbor::ioParamsFillGroup(enum ParamsIOFlag ioFlag) {
30  return ArborList::ioParamsFillGroup(ioFlag);
31 }
32 
33 void SingleArbor::ioParam_numAxonalArbors(enum ParamsIOFlag ioFlag) {
34  if (ioFlag == PARAMS_IO_READ) {
35  mNumAxonalArbors = 1;
36  parent->parameters()->handleUnnecessaryParameter(name, "numAxonalArbors", mNumAxonalArbors);
37  }
38 }
39 
40 } // namespace PV
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: SingleArbor.cpp:29
virtual void ioParam_numAxonalArbors(enum ParamsIOFlag ioFlag) override
numAxonalArbors: SingleArbors does not use the numAxonalArbors parameter, but sets the number of arbo...
Definition: SingleArbor.cpp:33
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: ArborList.cpp:28