Package org.jenetics.util

Examples of org.jenetics.util.ISeq


      @Override
      public Population unmarshal(final Model model) throws Exception {
        Population population = new Population();
        if (model.size > 0) {
          final ISeq pt = Array.of(model.phenotypes)
            .map(jaxb.Unmarshaller(model.phenotypes.get(0)))
            .toISeq();

          population = new Population(pt.asList());
        }

        return population;
      }
View Full Code Here


        return model;
      }

      @Override
      public Genotype unmarshal(final Model model) throws Exception {
        final ISeq chs = Array.of(model.chromosomes)
          .map(jaxb.Unmarshaller(model.chromosomes.get(0)))
          .toISeq();

        return new Genotype(chs, model.ngenes);
      }
View Full Code Here

      @Override
      public PermutationChromosome unmarshal(final Model model)
        throws Exception
      {
        final ISeq alleles = Array.of(model.alleles)
          .map(jaxb.Unmarshaller(model.alleles.get(0)))
          .toISeq();

        return new PermutationChromosome(
          Array.of(model.order).map(Gene(alleles)).toISeq()
View Full Code Here

TOP

Related Classes of org.jenetics.util.ISeq

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.