Changeset 304 for cpp/frams/model
- Timestamp:
- 01/22/15 00:12:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.h
r286 r304 223 223 void makeGeno(Geno &,MultiMap *map=0,bool handle_defaults=true); 224 224 225 /** @return mapping from source genotype (0-based position in text) to model elements reference numbers. 226 the map can be empty if the mapping hasn't been requested earlier (in constructor) 225 /** @return Mapping from source genotype (0-based position in text) to model elements reference numbers. 226 Read about how mappings work: http://www.framsticks.com/files/common/GeneticMappingsInArtificialGenomes.pdf 227 The map can be empty if the mapping hasn't been requested earlier (in constructor) 227 228 or the converters don't support mapping. 228 if you create or modify the model using singleStepBuild() or direct manipulation229 If you create or modify the model using singleStepBuild() or direct manipulation 229 230 the map will be not changed or created automatically - it is your responsibility. 230 231 @see Model(const Geno &src,int buildmaps=0), singleStepBuild(), PartBase::addMapping() … … 235 236 MultiMap &getMap(); 236 237 237 /** @return mapping from f0 genotype (0-based position in text) to model elements reference numbers 238 /** Read about how mappings work: http://www.framsticks.com/files/common/GeneticMappingsInArtificialGenomes.pdf 239 @return mapping from f0 genotype (0-based position in text) to model elements reference numbers 238 240 */ 239 241 const MultiMap &getF0Map(); … … 246 248 void clearMap(); 247 249 248 /** generate mapping from the current genotype to the f0 genotype.250 /** Generate mapping from the current genotype to the f0 genotype. 249 251 This works only if both current and f0 maps are already known. 252 Read about how mappings work: http://www.framsticks.com/files/common/GeneticMappingsInArtificialGenomes.pdf 250 253 @see convmap 251 254 */ … … 268 271 void clear(); 269 272 270 /** execute single line of <B>f0</B> genotype.271 return value is non-negative reference number of the created item,273 /** Execute single line of <B>f0</B> genotype. 274 Return value is non-negative reference number of the created item, 272 275 or negative value. reference number can be used to access 273 276 the item using getPart(int), getJoint(int) and getNeuroItem(int) methods. … … 285 288 void useAllDelta(bool yesno); 286 289 287 /// final validity check of the model, all model data has to be available at this point.288 /// if the model was modified, the genotype will be also updated.289 /// it also calls "validate" with all side effects.290 /// Final validity check of the model, all model data has to be available at this point. 291 /// If the model was modified, the genotype will be also updated. 292 /// It also calls "validate" with all side effects. 290 293 /// @return > 0 means "valid" 291 294 int close(); 292 295 293 /// enable model building.294 /// you should use it if you need to create new model, modify the model after close296 /// Enable model building. 297 /// You should use it if you need to create new model, modify the model after close 295 298 /// or modify the model created from the genotype. 296 /// between open() and close() the model is not fully usable,299 /// Between open() and close() the model is not fully usable. 297 300 void open(); 298 301 299 /// current model written as f0 genotype while building300 /// (not cached, not validated, probably unusable and bad if used before close(). but good for debugging.)302 /// Current model written as f0 genotype while building 303 /// (not cached, not validated, probably unusable and bad if used before close(). But good for debugging.) 301 304 Geno rawGeno(); 302 305
Note: See TracChangeset
for help on using the changeset viewer.