Package eas.simulation.spatial.sim2D.marbSimulation

Examples of eas.simulation.spatial.sim2D.marbSimulation.RobEA


            LinkedList<Long> vert = new LinkedList<Long>();
            for (RobEA robNah : nahe) {
                vert.add(Math.max(robNah.getFitSum(), 0));
            }

            RobEA sieger = (RobEA) MiscMath.randVerteilung(nahe, vert, this.rand);
           
            // <ALT: For every neighborhood, for every genome level choose fitness-proportionately.>
            // <Sollte dann die ganze Kette von Translatoren in dieser Methode neu übersetzt werden oder nur bei Mutation?>
            // Darüber nochmal nachdenken - doch alle Translatoren von einem Roboter kopieren?
            // => Ergebnis: Ja, so sollte man das tun, und so wird das auch getan.
            for (int i = 0; i < this.genomes.get(0).size(); i++) {
                for (RobEA robNah : nahe) {
                    this.setGenom(robNah.id(), this.getGenom(sieger.id(), i), i);
                }
            }
        }

        this.translationKomplett(params);
View Full Code Here


            final EnvironmentEA umg) {
        LinkedList<Integer>[] sequenzen;
        int laenge;
       
        for (AbstractAgent<?> r2 : umg.getAgents()) {
            RobEA r = (RobEA) r2;
            sequenzen = new LinkedList[r.getVAut().length];
           
            for (int i = 0; i < r.getVAut().length; i++) {
                laenge = this.rand.nextInt(maxlaenge - minlaenge + 1)
                        + minlaenge;
                sequenzen[i] = this.zufallsSequenz(laenge);
            }
           
            r.setVerhCodes(sequenzen);
            r.erzeugeAusSequenzen(
                    StaticMethods.stringAusListSeqs(sequenzen),
                    r.getConds(),
                    r.getTranslatoren(),
                    false);
        }
    }
View Full Code Here

     *
     * @param umg  Die zu den Robotern gehörende Umgebung.
     */
    private void platziereRoboter(final EnvironmentEA umg) {
        Iterator<VisMantel> it;
        RobEA rob;

        it = this.graphen.iterator();
        while (it.hasNext()) {
            rob = it.next().getRob();
            rob.zuruecksetzen();

            umg.hinzuRobotRand(rob);
        }
    }
View Full Code Here

TOP

Related Classes of eas.simulation.spatial.sim2D.marbSimulation.RobEA

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.