Class EvolutionDurations

    • Method Detail

      • offspringSelectionDuration

        public Duration offspringSelectionDuration()
        Return the duration needed for selecting the offspring population.
        Returns:
        the duration needed for selecting the offspring population
      • survivorsSelectionDuration

        public Duration survivorsSelectionDuration()
        Return the duration needed for selecting the survivors population.
        Returns:
        the duration needed for selecting the survivors population
      • offspringAlterDuration

        public Duration offspringAlterDuration()
        Return the duration needed for altering the offspring population.
        Returns:
        the duration needed for altering the offspring population
      • offspringFilterDuration

        public Duration offspringFilterDuration()
        Return the duration needed for removing and replacing invalid offspring individuals.
        Returns:
        the duration needed for removing and replacing invalid offspring individuals
      • survivorFilterDuration

        public Duration survivorFilterDuration()
        Return the duration needed for removing and replacing old and invalid survivor individuals.
        Returns:
        the duration needed for removing and replacing old and invalid survivor individuals
      • evaluationDuration

        public Duration evaluationDuration()
        Return the duration needed for evaluating the fitness function of the new individuals.
        Returns:
        the duration needed for evaluating the fitness function of the new individuals
      • evolveDuration

        public Duration evolveDuration()
        Return the duration needed for the whole evolve step.
        Returns:
        the duration needed for the whole evolve step
      • plus

        public EvolutionDurations plus​(EvolutionDurations other)
        Returns a copy of this duration with the specified duration added.

        This instance is immutable and unaffected by this method call.

        Parameters:
        other - the duration to add
        Returns:
        a EvolutionDurations based on this duration with the specified duration added
        Throws:
        NullPointerException - if the other duration is null
        ArithmeticException - if numeric overflow occurs
      • compareTo

        public int compareTo​(EvolutionDurations other)
        Compares two durations objects. Only the evolveDuration() property is taken into account for the comparison.
        Specified by:
        compareTo in interface Comparable<EvolutionDurations>
        Parameters:
        other - the other durations object this object is compared with
        Returns:
        a integer smaller/equal/greater than 0 if the evolveDuration() property of this object is smaller/equal/greater than the corresponding property of the other project.
      • of

        public static EvolutionDurations of​(Duration offspringSelectionDuration,
                                            Duration survivorsSelectionDuration,
                                            Duration offspringAlterDuration,
                                            Duration offspringFilterDuration,
                                            Duration survivorFilterDuration,
                                            Duration evaluationDuration,
                                            Duration evolveDuration)
        Return an new EvolutionDurations object with the given values.
        Parameters:
        offspringSelectionDuration - the duration needed for selecting the offspring population
        survivorsSelectionDuration - the duration needed for selecting the survivors population
        offspringAlterDuration - the duration needed for altering the offspring population
        offspringFilterDuration - the duration needed for removing and replacing invalid offspring individuals
        survivorFilterDuration - the duration needed for removing and replacing old and invalid survivor individuals
        evaluationDuration - the duration needed for evaluating the fitness function of the new individuals
        evolveDuration - the duration needed for the whole evolve step
        Returns:
        an new durations object
        Throws:
        NullPointerException - if one of the arguments is null