Package eas.simulation.spatial.sim2D.standardScenes

Examples of eas.simulation.spatial.sim2D.standardScenes.ObstacleScene


    private static final long serialVersionUID = -5914226058694172146L;

    @Override
    public FelixWorld[] generateRunnables(ParCollection params) {
        FelixWorld[] worlds = new FelixWorld[1];
        ObstacleScene scene = new ObstacleScene(params);
        scene.scaleScene(0.5);
        scene.translateScene(new Vector2D(-20, -20));
        scene.rotateScene(10);
       
        worlds[0] = new FelixWorld(0, params);
        worlds[0].addCollidingAgent(new FelixAgent(0, worlds[0], params), new Vector2D(0, 0), 0);
        worlds[0].addCollidingAgent(new FelixAgent(1, worlds[0], params), new Vector2D(3, 0), 0);
        worlds[0].addCollidingAgent(new FelixAgent(2, worlds[0], params), new Vector2D(6, 0), 0);
View Full Code Here


    @SuppressWarnings("unchecked")
    @Override
    public WandaEnvironment<AbstractAgent2D<?>>[] generateRunnables(ParCollection params) {
        WandaEnvironment<AbstractAgent2D<?>> env = new WandaEnvironment<AbstractAgent2D<?>>(0, params);

        Scene2D<AbstractAgent2D<?>> scene = new ObstacleScene(params);
        scene.fitInBoundingRectangle(new Vector2D(-1000, -1000), new Vector2D(1500, 1500));
        env.addScene(scene);

        Random rand = new Random(params.getSeed());
        for (int i = 0; i < 5; i++) {
            WandaAgent agent = new WandaAgent(i, env, params);
View Full Code Here

    @Override
    public SimpleEnvironment[] generateRunnables(
            ParCollection params) {
        SimpleEnvironment env = new SimpleEnvironment(0, params);
       
        env.addScene(new ObstacleScene(params));
        env.addCollidingAgent(
                new SimpleAgent(4, env, params),
                new Vector2D(100, 100),
                10,
                new Vector2D(20, 20));
View Full Code Here

  @Override
  public ParticleEnv[] generateRunnables(ParCollection params) {
    this.rand = new Random(params.getSeed());
    ParticleEnv env = new ParticleEnv(0, params);
    env.addScene(new ObstacleScene(params));

    for (int i = 0; i < 10; i++) {
      env.addCollidingAgent( new Particle(i, env, params),
          new Vector2D(rand.nextInt(), rand.nextInt()), // Position
          0, // Blickrichtung
View Full Code Here

       
        double agentSize = 1;
       
        Random rand = new Random(params.getSeed());
       
        Scene2D<AbstractAgent2D<?>> scene1 = new ObstacleScene(params);
        scene1.fitInBoundingRectangle(new Vector2D(-20, -20), new Vector2D(80, 20), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene1);
       
        Scene2D<AbstractAgent2D<?>> scene2 = new ObstacleScene(params);
        scene2.fitInBoundingRectangle(new Vector2D(-5, -5), new Vector2D(5, 5), Scene2D.FITTING_MODE_FIT_UPPER_LEFT);
        runnable.addScene(scene2);
        runnable.removeAgent(7);
       
        double factor = 12;
        int startSize = runnable.getAgents().size();
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.standardScenes.ObstacleScene

Copyright © 2018 www.massapicom. 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.