91
edits
Line 117: | Line 117: | ||
To be able to extract all important positions and values from the program several logging methods are implemented. The program produces a simple text-file, where the parameter values are noted as well as the positions of the fish (original coordinates plus coordinates scaled to fit the textile application), their id and their children. The tank class produces an image where the positions of the fish are noted pixelwise, the image shows their complete movement. I also export an SVG-file with a straight line connecting the end position of each fish with their children. This export can be done with additional text output directly within the SVG-file (the id of each fish above its “grave”). | To be able to extract all important positions and values from the program several logging methods are implemented. The program produces a simple text-file, where the parameter values are noted as well as the positions of the fish (original coordinates plus coordinates scaled to fit the textile application), their id and their children. The tank class produces an image where the positions of the fish are noted pixelwise, the image shows their complete movement. I also export an SVG-file with a straight line connecting the end position of each fish with their children. This export can be done with additional text output directly within the SVG-file (the id of each fish above its “grave”). | ||
The text-based log file (example below) consists of all important parameters as well as the coordinates of each fish, g: denotes the generation while c: denotes the ids of its descendents. | |||
<pre>tank cx,cy,radius: 300.0 300.0 300.0 | <pre>tank cx,cy,radius: 300.0 300.0 300.0 | ||
Line 139: | Line 139: | ||
3 g:2 died 375.58804 65.089584 : 175 30 c: 7 8 | 3 g:2 died 375.58804 65.089584 : 175 30 c: 7 8 | ||
...</pre> | ...</pre> | ||
[[Image:Img_18-3-15-37-43.png|400px|Connection lines between (dead) fish of 6 generations]] | |||
== Parameters and Variations == | == Parameters and Variations == |
edits