@SuppressWarnings("unchecked")
@Override
public AbstractEnvironment2DFast<AbstractAgent2D<?>>[] generateRunnables(
ParCollection params) {
@SuppressWarnings({ "rawtypes" })
AbstractEnvironment2DFast<AbstractAgent2D<?>> env = new AbstractEnvironment2DFast(0, params) {
/**
*
*/
private static final long serialVersionUID = 5850242073723112547L;};
Random rand = new Random(0);
env.addScene(new ObstacleRecursiveScene(params));
for (int i = 0; i < 20; i++) {
Roboter r = new Roboter(10 + i, env, rand, params, false, 360);
MARBBrain<Roboter> b = new MARBBrain<Roboter>(r, params);
b.getMarb().erzeugeAusStdSequenz("002, 003, 003, 250, 000, 012, 001, 002, 000, 005, 000, 012, 004, 004, 000, 007, 000, 011, 000, 012, 001, 002, 000, 005, 000, 012, 004, 000, 012, 005, 000, 006, 000, 010, 000, 012, 003, 001, 000, 004, 000, 011, 000, 011, 000, 000, 005, 001, 000, 000, 000, 005, 004, 001, 001, 000, 000, 000");
r.implantBrain(b);
env.addCollidingAgent(r, new Vector2D(400 + i * 30, 200 - i * 30), rand.nextDouble() * 360);
}
return new AbstractEnvironment2DFast[] {env};
}