}
/*
* Erzeugt eine Simulationsumgebung, in der die Aufnahme angezeigt wird:
*/
SimulationsZeit simZ;
int size = robs.length;
String[][] vAutStd = new String[size][];
String[][] tAutStd = new String[size][];
String[][] vAut = new String[size][];
String[][] tAut = new String[size][];
int[] identitaeten = new int[size];
Vektor2D[] positionen = new Vektor2D[size];
double[] winkel = new double[size];
Vektor2D[] versch;
Vektor2D[] neuVersch;
int[][] fitness = new int[size][];
Condition[][] conds = new Condition[size][];
Vis[] visGr = new Vis[this.graphen.size()];
int i = 0;
Iterator<Vis> it = this.graphen.iterator();
while (it.hasNext()) {
visGr[i] = it.next();
for (int j = 0; j < robs.length; j++) {
if (visGr[i].getRob().getId() == robs[j].getId()) {
vAutStd[i] = robs[j].getVStdCodes();
vAut[i] = robs[j].getVCodes();
tAutStd[i] = robs[j].getTStdCodes();
tAut[i] = robs[j].getTCodes();
fitness[i] = robs[j].getFitness();
identitaeten[i] = robs[j].getId();
positionen[i] = robs[j].getPosition();
winkel[i] = robs[j].getWinkel();
conds[i] = new Condition[robs[j].getConds().length];
for (int k = 0; k < robs[j].getConds().length; k++) {
conds[i][k] = robs[j].getConds()[k];
}
break;
}
}
i++;
}
// Erzeugt eine neue Simulation, falls noch keine erzeugt wurde.
if (this.guiSim == null) {
this.parsAufn.setAufnSp(false);
this.parsAufn.setEndlos(true);
this.parsAufn.setEvolution(false);
this.parsAufn.setVerzoegerung(Long.MAX_VALUE);
this.guiSim = new GuiSimulation("Snapshot"
+ " ["
+ this.graphen.size()
+ " robots]",
null,
this,
this.parsAufn);
simZ = new SimulationsZeit(this.parsAufn,
this.guiSim,
visGr,
vAutStd,
conds,
identitaeten);