Package org.jgap.impl

Examples of org.jgap.impl.IntegerGene.intValue()


            Gene g = program.get(i);

            if (g instanceof IntegerGene) {
                IntegerGene ig = (IntegerGene) g;
                inst = IntegerInstructionGene.getInstruction(ig.intValue(),
                        size);
            } else if (g instanceof InstructionGene) {
                inst = ((InstructionGene) g).getInstruction();
            }
View Full Code Here


        for (int i = 0; i < individual.size(); i++) {
            Instruction inst = null;
            switch (geneType) {
                case INTEGER:
                    IntegerGene g = (IntegerGene) (individual.get(i));
                    inst = IntegerInstructionGene.getInstruction(g.intValue(),
                            in.getSize());
                    break;
                case BITFIELD:
                    FixedBinaryGene fbg = (FixedBinaryGene) (individual.get(i));
                    inst = BitFieldInstructionGene.getInstruction(
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.