Package eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment

Source Code of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.SimpleMazeScene2

/*
* File name:        SimpleMazeScene.java (package eas.simulation.users.lukas.marbImplicitEvolution.simpleMazeEnvironment)
* Author(s):        aifb
* Java version:     6.0
* Generation date:  28.02.2011 (15:20:27)
*
* (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.lukas.marbImplicitEvolution.simpleMazeEnvironment;

import eas.math.geometry.Vector2D;
import eas.simulation.spatial.sim2D.standardAgents.AbstractAgent2D;
import eas.simulation.spatial.sim2D.standardAgents.ObstacleAgent;
import eas.simulation.spatial.sim2D.standardScenes.Scene2D;
import eas.startSetup.ParCollection;

/**
* @author aifb
*
*/
public class SimpleMazeScene2 extends Scene2D<AbstractAgent2D<?>> {

    /**
     *
     */
    private static final long serialVersionUID = 2719460126237024456L;

    /**
     * @param ident
     * @param params
     */
    public SimpleMazeScene2(String ident, ParCollection params) {
        super(ident, params);
        this.addCollidingAgent(new ObstacleAgent(0, null, params), new Vector2D(0, 0), 0, new Vector2D(1, 0.1));
        this.addCollidingAgent(new ObstacleAgent(1, null, params), new Vector2D(0, 300), 0, new Vector2D(1, 0.1));
        this.addCollidingAgent(new ObstacleAgent(2, null, params), new Vector2D(-251, 150), 90, new Vector2D(0.6, 0.1));
        this.addCollidingAgent(new ObstacleAgent(3, null, params), new Vector2D(251, 150), 90, new Vector2D(0.6, 0.1));
        this.addCollidingAgent(new ObstacleAgent(4, null, params), new Vector2D(125.5, 52), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(5, null, params), new Vector2D(0, 52), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(6, null, params), new Vector2D(-125.5, 52), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(7, null, params), new Vector2D(125.5, 248), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(8, null, params), new Vector2D(0, 248), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(9, null, params), new Vector2D(-125.5, 248), 90, new Vector2D(0.2, 0.2));
        this.addCollidingAgent(new ObstacleAgent(10, null, params), new Vector2D(-188.25, 150), 90, new Vector2D(0.3, 0.2));
        this.addCollidingAgent(new ObstacleAgent(11, null, params), new Vector2D(-62.75, 150), 0, new Vector2D(0.3, 0.2));
        this.addCollidingAgent(new ObstacleAgent(12, null, params), new Vector2D(62.75, 150), 90, new Vector2D(0.3, 0.2));
        this.addCollidingAgent(new ObstacleAgent(13, null, params), new Vector2D(170.25, 150), 0, new Vector2D(0.25, 0.2));
        this.scaleScene(5);
       
    }

}
TOP

Related Classes of eas.users.lukas.marbImplicitEvolution.simpleMazeEnvironment.SimpleMazeScene2

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.