* @param pops Die Populationen.
*
* @return Die extrahierten Fitnesswerte.
*/
public static String extrahiereFit(final List<PopSnapshot> pops) {
PopSnapshot pop;
long popNummer;
String sGes = "";
Iterator<PopSnapshot> it = pops.iterator();
// Erste Zeile.
sGes = sGes + "SnapshotID";
for (int i = 0;
i < ((PopSnapshot) pops.get(0)).getRobSchnapp().length;
i++) {
sGes = sGes + ";Fitness (Roboter " + i + ")";
}
sGes = sGes + "\n";
// Rest.
while (it.hasNext()) {
String s = "";
pop = it.next();
popNummer = pop.getId();
s = s + popNummer;
for (int i = 0; i < pop.getRobSchnapp().length; i++) {
s = s
+ ";"
+ pop.getRobSchnapp()[i].getFitness()[0];
}
sGes = sGes + s + "\n";
}