/*
* File name: DomPhysMaster.java (package eas.simulation.users.Dominik.rocket)
* Author(s): Dominik Colling
* Java version: 6.0
* Generation date: 12.04.2011 (12:29:38)
*
* (c) This file and the EAS (Easy Agent Simulation) framework containing it
* is protected by Creative Commons by-nc-sa license. Any altered or
* further developed versions of this file have to meet the agreements
* stated by the license conditions.
*
* In a nutshell
* -------------
* You are free:
* - to Share -- to copy, distribute and transmit the work
* - to Remix -- to adapt the work
*
* Under the following conditions:
* - Attribution -- You must attribute the work in the manner specified by the
* author or licensor (but not in any way that suggests that they endorse
* you or your use of the work).
* - Noncommercial -- You may not use this work for commercial purposes.
* - Share Alike -- If you alter, transform, or build upon this work, you may
* distribute the resulting work only under the same or a similar license to
* this one.
*
* + Detailed license conditions (Germany):
* http://creativecommons.org/licenses/by-nc-sa/3.0/de/
* + Detailed license conditions (unported):
* http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en
*
* This header must be placed in the beginning of any version of this file.
*/
package eas.users.students.dominikColling.rocket;
import java.util.List;
import eas.plugins.masterScheduler.AbstractDefaultMaster;
import eas.simulation.ConstantsSimulation;
import eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.math.Vector2f;
import eas.startSetup.GlobalVariables;
import eas.startSetup.ParCollection;
import eas.startSetup.SingleParameter;
import eas.users.students.dominikColling.rocket.brain.DomPhysNeuroBrain;
/**
* @author Dominik
*
*/
public class DomPhysMaster extends AbstractDefaultMaster<DomPhysEnv> {
/**
*
*/
private static final long serialVersionUID = 5681795301025682763L;
@Override
public DomPhysEnv[] generateRunnables(ParCollection params) {
/* Gravitation mit Vector2f einstellbar*/
DomPhysEnv env
= new DomPhysEnv(0, params, new Vector2f(0, 0), 100);
return new DomPhysEnv[] {env};
}
@Override
public List<SingleParameter> getParameters() {
List<SingleParameter> list = super.getParameters();
ParCollection params = GlobalVariables.getPrematureParameters();
list.addAll(new DomPhysAgent(0, null, "", 0.0f, params, 0).getParameters());
list.addAll(new DomPhysNeuroBrain(null, 0, null, params).getParameters());
return list;
}
@Override
public String id() {
return ConstantsSimulation.DEFAULT_MASTER_SCHEDULER_ID + "-Dominik.rocket";
}
}