Changeset 990
- Timestamp:
- 07/09/20 01:35:59 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genomanipulation.cpp
r989 r990 199 199 printf("any shape types.\n"); 200 200 else 201 201 { 202 202 printf("shape types:"); 203 for (int i=Model::SHAPE_FIRST; i<= Model::SHAPE_LAST; i++)203 for (int i = Model::SHAPE_FIRST; i <= Model::SHAPE_LAST; i++) 204 204 if (cl->isShapeTypeSupported((Model::ShapeType)i)) 205 printf(" '%s'", Model::getShapeTypeName((Model::ShapeType)i));205 printf(" '%s'", Model::getShapeTypeName((Model::ShapeType)i)); 206 206 printf(".\n"); 207 207 } 208 208 if (cl->preflocation == NeuroClass::PREFER_JOINT) 209 209 { 210 210 printf("Instances of '%s' can be attached to Joints having ", cl->getName().c_str()); 211 211 if (cl->getSupportedJointShapes() == NeuroClass::SUPPORTED_JOINT_ALL) 212 212 printf("any shapes"); 213 213 else 214 214 { 215 215 printf("shapes:"); 216 for (int i=Joint::SHAPE_FIRST; i<= Joint::SHAPE_LAST; i++)216 for (int i = Joint::SHAPE_FIRST; i <= Joint::SHAPE_LAST; i++) 217 217 if (cl->isJointShapeSupported((Joint::Shape)i)) 218 printf(" '%s'", Joint::getShapeName((Joint::Shape)i));219 218 printf(" '%s'", Joint::getShapeName((Joint::Shape)i)); 219 } 220 220 printf(".\n"); 221 221 } 222 222 else if (cl->preflocation == NeuroClass::PREFER_PART) 223 223 printf("Instances of '%s' can be attached to Parts.\n", cl->getName().c_str()); … … 283 283 { 284 284 GenoConverter *gc = Geno::getConverters()->findConverters(0, '1'); 285 if (gc) printf(" found converter accepting f1: \"%s\"\n", gc->name);285 if (gc) printf("Found converter accepting f1: \"%s\"\n", gc->name); 286 286 SListTempl<GenoConverter*> found; 287 287 Geno::getConverters()->findConverters(&found, Geno::FORMAT_UNKNOWN, '0'); 288 printf(" found %d converter(s) producing f0\n", found.size());288 printf("Found %d converter(s) producing f0\n", found.size()); 289 289 } 290 290 … … 294 294 PreconfiguredGenetics genetics; 295 295 296 srand(time(0));297 printNiceBanner("Welcome to Genotype Manipulation App!");296 //srand(time(0)); //uncomment to see the demonstration of different behaviors and results on each run 297 printNiceBanner("Welcome to Genotype Manipulation Demo!"); 298 298 299 299 findingConverters(); … … 375 375 "Hints:\n" 376 376 " 1. You can redirect output: genomanipulation >filename.txt\n" 377 " 2. Each run can yield different results , because some\n"378 " values are randomly generated.\n"377 " 2. Each run can yield different results and new behaviors, but you\n" 378 " need to uncomment srand(time(0)) in genomanipulation.cpp.\n" 379 379 " 3. This application will use custom genotype passed as\n" 380 380 " a commandline parameter: genomanipulation XX\n"
Note: See TracChangeset
for help on using the changeset viewer.