@Override
public void runDuringSimulation(
final EnvironmentEA env,
final Wink simZyk,
final ParCollection params) {
EnvironmentEA umg = env;
String sensoren = "";
int[] sensArray = umg.getAgents().get(0).getSensorWerte();
Plugin<EnvironmentEA> grZahn;
for (int i = 0; i < 7; i++) {
sensoren += sensArray[i] + ",";
}
this.sensorwerte.add(sensoren);
if (simZyk.getLastTick() >= params.getParValueDouble("TimeToTermination") - 1) {
StaticMethods.speichereTextAusArray(
params.getStdDirectory(),
"sensoren.txt",
this.sensorwerte,
params);
StaticMethods.log(StaticMethods.LOG_INFO, params.getStdDirectory(), params);
}
grZahn = (Plugin<EnvironmentEA>) umg.getPluginObject(new GrZahnr().id());
grZahn.runDuringSimulation(umg, simZyk, params);
}