Package com.heatonresearch.aifh.examples.ca.mergelife.universe

Examples of com.heatonresearch.aifh.examples.ca.mergelife.universe.UniverseRunner.randomize()


            if (this.copySource != null) {
                final UniverseRunner target = this.grid[row][col]
                        .getUniverseRunner();
                target.getPhysics().copyData(
                        this.copySource.getPhysics().getData());
                target.randomize(this.rnd);
            } else if (this.crossoverParent1 != null
                    && this.crossoverParent2 == null) {
                this.crossoverParent2 = this.grid[row][col].getUniverseRunner();
            } else  {
                final UniverseRunner target = this.grid[row][col]
View Full Code Here


                this.crossoverParent2 = this.grid[row][col].getUniverseRunner();
            } else  {
                final UniverseRunner target = this.grid[row][col]
                        .getUniverseRunner();
                target.crossover(this.rnd, this.crossoverParent1, this.crossoverParent2);
                target.randomize(this.rnd);
            }
        }
    }

    /**
 
View Full Code Here

     * @param col The multiverse column.
     */
    public synchronized void mutateSingle(final int row, final int col) {
        final UniverseRunner target = this.grid[row][col].getUniverseRunner();
        target.mutate(this.rnd, target.getPhysics(), 0.5, 0.2);
        target.randomize(this.rnd);
    }

    /**
     * Randomize a universe (both physics and state).
     *
 
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.