Class Configuration

    • Method Detail

      • parse

        public Configuration parse​(org.dom4j.Element rootElement)
        Description copied from interface: XmlEntity
        Parse a Element and return the entity.
        Specified by:
        parse in interface XmlEntity<Configuration>
        Parameters:
        rootElement - element to parse
        Returns:
        parsed entity
      • serialize

        public org.dom4j.Element serialize()
        Description copied from interface: XmlEntity
        Serialize the entity into a Element.
        Specified by:
        serialize in interface XmlEntity<Configuration>
        Returns:
        serialized document
      • genotypeFactory

        public io.jenetics.Genotype<DiscreteGene> genotypeFactory()
        Shuffle a new chromosome with DiscreteGenes from the distance list.
        Returns:
        shuffled chromosome from distance list
      • geneSequenceValidator

        public boolean geneSequenceValidator​(io.jenetics.util.ISeq<DiscreteGene> geneSequence)
        Validator for a sequence of DiscreteGenes.
        Parameters:
        geneSequence - sequence of genes to validate
        Returns:
        whether the gene sequence is valid or not
      • getVersion

        public String getVersion()
        Version for configuration compatibility checks.
      • getName

        public String getName()
        The configurations name.
      • getLimit

        public int getLimit()
        Last execution limit for the evolution method.
      • getPositions

        public int getPositions()
        The amount of positions available for the DiscreteGenes.
      • getDistances

        public List<Double> getDistances()
        Input distances to choose a permutation from. Forms single DiscreteGene chromosomes.
      • getSelector

        public io.jenetics.Selector<DiscreteGene,​Double> getSelector()
        Selection method for offspring.
      • getOffspring

        public int getOffspring()
        Amount of offspring individuals. Has to be less or equal than population.
      • getPopulation

        public int getPopulation()
        Population size.
      • isChooseWithoutPermutation

        public boolean isChooseWithoutPermutation()
        State of whether to choose the distances in a permutation during the shuffle of new individuals.
        See Also:
        DiscreteGene.newInstance()
      • getDistanceMutationDelta

        public double getDistanceMutationDelta()
        Value of maximum distance change during the mutation.
        See Also:
        DistanceMutator
      • setVersion

        public void setVersion​(String version)
        Version for configuration compatibility checks.
      • setName

        public void setName​(String name)
        The configurations name.
      • setLimit

        public void setLimit​(int limit)
        Last execution limit for the evolution method.
      • setPositions

        public void setPositions​(int positions)
        The amount of positions available for the DiscreteGenes.
      • setDistances

        public void setDistances​(List<Double> distances)
        Input distances to choose a permutation from. Forms single DiscreteGene chromosomes.
      • setAlterers

        public void setAlterers​(List<? extends DiscreteAlterer> alterers)
        List of alterers used during the Evolution's mutation phase.
      • setSelector

        public void setSelector​(io.jenetics.Selector<DiscreteGene,​Double> selector)
        Selection method for offspring.
      • setOffspring

        public void setOffspring​(int offspring)
        Amount of offspring individuals. Has to be less or equal than population.
      • setPopulation

        public void setPopulation​(int population)
        Population size.
      • setChooseWithoutPermutation

        public void setChooseWithoutPermutation​(boolean chooseWithoutPermutation)
        State of whether to choose the distances in a permutation during the shuffle of new individuals.
        See Also:
        DiscreteGene.newInstance()
      • setDistanceMutationDelta

        public void setDistanceMutationDelta​(double distanceMutationDelta)
        Value of maximum distance change during the mutation.
        See Also:
        DistanceMutator
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object