Package eas.users.lukas.marbImplicitEvolution.gateEnvironment

Examples of eas.users.lukas.marbImplicitEvolution.gateEnvironment.GateEnvironment.addCollidingAgent()


            ParCollection params) {
        GateEnvironment env = new GateEnvironment(0, params);
        NeuroAgent agent = new NeuroAgent(0, env, params);
        NeuroBrain<NeuroAgent> brain = new NeuroBrain<NeuroAgent>(agent, params);
        agent.implantBrain(brain);
        env.addCollidingAgent(agent, Vector2D.NULL_VECTOR, 10, new Vector2D(20, 20));
       
        return new AbstractEnvironment2DFast<?>[] {env};
    }

    @Override
View Full Code Here


        GateEnvironment env = new GateEnvironment(0, params);
        for (int i = 0; i < 15; i++) {
            NeuroAgent agent = new NeuroAgent(i, env, params);
            NeuroBrain<NeuroAgent> brain = new NeuroBrain<NeuroAgent>(agent, params);
            agent.implantBrain(brain);
            env.addCollidingAgent(agent, new Vector2D(i * 40 - 500, i * 40 - 500), 10, new Vector2D(20, 20));
        }
       
        return new AbstractEnvironment2DFast<?>[] {env};
    }

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.