Examples of WandaAgent


Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

        env.addCollidingAgent(new ObstacleAgent(0, null, null), new Vector2D(-1510, 0), 90, new Vector2D(6,1));
        // vertikaler Balken rechts
        env.addCollidingAgent(new ObstacleAgent(0, null, null), new Vector2D(1510, 0), 90, new Vector2D(6,1));
       
        // Erzeugen der Agenten und Verhaltensuebertragung
        WandaAgent agent1 = new WandaAgent(0, env, params);
        agent1.addActuator(new aBerechnungSwarmSimulation());
       
        String fileName = SwarmScheduler.class.getPackage().getName().replace(".", "/")
                + "/swarmSimulation.xml";
       
        agent1.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent1, new File(fileName)));
        env.addCollidingAgent(agent1, new Vector2D(0,0), 80, new Vector2D(1,1));
       
        WandaAgent agent2 = new WandaAgent(0, env, params);
        agent2.addActuator(new aBerechnungSwarmSimulation());
        agent2.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent2, new File(fileName)));
        env.addCollidingAgent(agent2, new Vector2D(100,0), 80, new Vector2D(1,1));
       
        WandaAgent agent3 = new WandaAgent(0, env, params);
        agent3.addActuator(new aBerechnungSwarmSimulation());
        agent3.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent3, new File(fileName)));
        env.addCollidingAgent(agent3, new Vector2D(100,150), 80, new Vector2D(1,1));
       
        return new WandaEnvironment[] {env};
    }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

                new Vector2D(1, 1));
   
    Random rand = new Random(params.getSeed());
  /* Fuer Schwarmsimulationen. */
      for (int i = 0; i < 5; i++) {
      WandaAgent agent = new WandaAgent(i, env, params);
      agent.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent, new File("eas/users/oclrss12/gruppe4/aufgabe4/TypeBasiert.xml")));
     
      agent.addActuator(new AFOLLOW());
     
      env.addCollidingAgent(agent,
          new Vector2D(200 + i*100 + (rand.nextInt(20) - 10),200),
          90, new Vector2D(0.5,0.5));
    }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

  @SuppressWarnings({ "unchecked" })
    @Override
  public WandaEnvironment[] generateRunnables(ParCollection params) {
    WandaEnvironment env = new WandaEnvironment(0, params);
   
    WandaAgent pointer = new WandaAgent(0, env, params);
    pointer.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(pointer,
        new File("eas/users/students/danielFunke/wandaTest/pointer.xml")));
    pointer.addActuator(new APOINTTO());
    env.addCollidingAgent(pointer, new Vector2D(-100,100), 0, null);
   
    WandaAgent mover = new WandaAgent(1, env, params);
    mover.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(mover,
        new File("eas/users/students/danielFunke/wandaTest/mover.xml")));
    mover.addActuator(new APOINTTO());
    env.addCollidingAgent(mover, Vector2D.NULL_VECTOR, 0, null);
   
    /*Random rand = new Random(params.getSeed());
        env.addScene(new ObstacleRectangularScene(1, params, rand));
   
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

    Random rand = new Random(params.getSeed());
   
    env.addScene(new ObstacleRectangularScene(1, params, rand));
   
    for (int i = 0; i < 10; i++) {
      WandaAgent agent = new WandaAgent(i, env, params);
      agent.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent,
          new File("eas/users/students/danielFunke/wolfSheep/sheep.xml")));
      agent.addActuator(new AFLOCK());
      agent.addActuator(new AFLEE());
     
      env.addCollidingAgent(
          agent,
          new Vector2D((i-4)*100, (i-4)*100),
          rand.nextInt(360),
          null);
     
    }
   
    for (int i = 0; i < 4; i++) {
      WandaAgent agent = new WandaAgent(i, env, params);
      agent.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent,
          new File("eas/users/students/danielFunke/wolfSheep/wolf.xml")));
      agent.addActuator(new AHUNT());
     
      env.addCollidingAgent(
          agent,
          new Vector2D( (i-1) * 200 ,900),
          180 + (10-rand.nextInt(20)),
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

                new Vector2D(1, 1));
   
   
    Random rand = new Random(params.getSeed());
    for (int i = 0; i < 10; i++) {
      WandaAgent agent = new WandaAgent(i, env, params);
     
      agent.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent, new File("eas/users/tolulo/move2.xml")));
           
      env.addCollidingAgent(agent,
          new Vector2D(rand.nextInt(1000), rand.nextInt(1000)),
          rand.nextInt(360), new Vector2D(0.5,0.5));
    }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.standardAgents.wandaRobot.WandaAgent

        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);
            agent.implantBrain(new MDL2eBrain<AbstractAgent2D<?>>(agent,
                    new File("eas/users/daniel/wandaTest/atomtest.xml")));
            agent.addActuator(new AATOMTEST());
            env.addCollidingAgent(agent,
                    new Vector2D(rand.nextInt(1000), rand.nextInt(1000)),
                    rand.nextInt(360));
        }
View Full Code Here
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.