Changeset 999 for cpp/frams/genetics
- Timestamp:
- 07/13/20 13:51:43 (5 years ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/f4_oper.cpp
r974 r999 164 164 { 165 165 // make neuron 166 NeuroClass *rndclass = GenoOperators::getRandomNeuroClass(Model::SHAPE _BALL_AND_STICK);166 NeuroClass *rndclass = GenoOperators::getRandomNeuroClass(Model::SHAPETYPE_BALL_AND_STICK); 167 167 if (rndclass == NULL) 168 168 { … … 434 434 { 435 435 // '*', 'G', 'T', or 'S', 1/4 chance each 436 nc = GenoOperators::getRandomNeuroClassWithOutputAndNoInputs(Model::SHAPE _BALL_AND_STICK);436 nc = GenoOperators::getRandomNeuroClassWithOutputAndNoInputs(Model::SHAPETYPE_BALL_AND_STICK); 437 437 } 438 438 if (nc != NULL) … … 470 470 if (rndDouble(1) < 0.2f) 471 471 { 472 cl = GenoOperators::getRandomNeuroClassWithOutputAndNoInputs(Model::SHAPE _BALL_AND_STICK);472 cl = GenoOperators::getRandomNeuroClassWithOutputAndNoInputs(Model::SHAPETYPE_BALL_AND_STICK); 473 473 if (cl != NULL) 474 474 { -
cpp/frams/genetics/fB/fB_oper.cpp
r974 r999 287 287 int rndid = rndUint(tokenized.size()); // select random insertion point 288 288 std::advance(it, rndid); 289 NeuroClass *cls = getRandomNeuroClass(Model::SHAPE _BALL_AND_STICK);289 NeuroClass *cls = getRandomNeuroClass(Model::SHAPETYPE_BALL_AND_STICK); 290 290 if (cls) 291 291 { -
cpp/frams/genetics/fH/fH_oper.cpp
r974 r999 255 255 fH_Handle *handle = NULL; 256 256 method = FH_OPCOUNT + roulette(addoperations, FH_ADD_OPCOUNT); 257 if (getActiveNeuroClassCount(Model::SHAPE _BALL_AND_STICK) == 0) method = FH_OPCOUNT + FH_ADD_STICK;257 if (getActiveNeuroClassCount(Model::SHAPETYPE_BALL_AND_STICK) == 0) method = FH_OPCOUNT + FH_ADD_STICK; 258 258 switch (method - FH_OPCOUNT) 259 259 { … … 440 440 if (userandomclass) 441 441 { 442 NeuroClass *nc = getRandomNeuroClass(Model::SHAPE _BALL_AND_STICK); // checking that neuron classes are available should be done before442 NeuroClass *nc = getRandomNeuroClass(Model::SHAPETYPE_BALL_AND_STICK); // checking that neuron classes are available should be done before 443 443 det = nc->getName(); 444 444 } -
cpp/frams/genetics/fL/fL_oper.cpp
r974 r999 141 141 { 142 142 SString det; 143 NeuroClass *cls = getRandomNeuroClass(Model::SHAPE _BALL_AND_STICK);143 NeuroClass *cls = getRandomNeuroClass(Model::SHAPETYPE_BALL_AND_STICK); 144 144 det = cls->getName(); 145 145 Geno_fH::mutateNeuronProperties(det); … … 201 201 return creature->words["S"]; 202 202 case FL_ADD_NEURO: 203 if (getActiveNeuroClassCount(Model::SHAPE _BALL_AND_STICK) == 0)203 if (getActiveNeuroClassCount(Model::SHAPETYPE_BALL_AND_STICK) == 0) 204 204 return creature->words["S"]; 205 205 else -
cpp/frams/genetics/geno.cpp
r988 r999 260 260 if (Geno::formatIsOneOf(g.getFormat(), Geno::F0_FORMAT_LIST)) 261 261 { 262 Model mod(g, Model::SHAPE _UNKNOWN);262 Model mod(g, Model::SHAPETYPE_UNKNOWN); 263 263 return mod.isValid(); 264 264 } -
cpp/frams/genetics/genoconv.h
r988 r999 34 34 35 35 /// Base class for all Geno Converters. 36 /// In constructor you have to set public fields 37 /// indicating your identity and supported formats. 36 /// In constructor you have to set public fields indicating your identity and supported formats. 38 37 /// Each converter serves one in-out format pair. 39 /// Instance of your converter should be registered 40 /// in GenoConvManager. 38 /// The instance of your converter should be registered in GenoConvManager. 41 39 class GenoConverter 42 40 { 43 41 public: 44 42 const char *name; //< converter name (short) 45 SString in_format, //< input format, e g. "1"46 out_format; //< output format, e g. "0"43 SString in_format, //< input format, e.g. "1" 44 out_format; //< output format, e.g. "0" 47 45 paInt enabled; //< don't touch this! (used by configuration module) 48 46 paInt mapsupport; //< set to 1 if your converter supports genotype mapping
Note: See TracChangeset
for help on using the changeset viewer.