Skip to content

Commit 5b32d9a

Browse files
committed
renamed package and module names
1 parent 3d91d92 commit 5b32d9a

131 files changed

Lines changed: 662 additions & 594 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

commons-math-examples/examples-genetics/examples-genetics-math-functions/pom.xml renamed to commons-math-examples/examples-ga/examples-ga-math-functions/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020
<modelVersion>4.0.0</modelVersion>
2121
<parent>
2222
<groupId>org.apache.commons</groupId>
23-
<artifactId>examples-genetics</artifactId>
23+
<artifactId>examples-ga</artifactId>
2424
<version>4.0-SNAPSHOT</version>
2525
</parent>
26-
<artifactId>examples-genetics-math-functions</artifactId>
26+
<artifactId>examples-genetic-algorithm-math-functions</artifactId>
2727

2828
<properties>
2929
<maven.compiler.source>1.8</maven.compiler.source>
3030
<maven.compiler.target>1.8</maven.compiler.target>
3131

3232
<!-- OSGi -->
33-
<commons.osgi.symbolicName>org.apache.commons.math4.examples.genetics.mathfunctions</commons.osgi.symbolicName>
34-
<commons.osgi.export>org.apache.commons.math4.examples.genetics.mathfunctions</commons.osgi.export>
33+
<commons.osgi.symbolicName>org.apache.commons.math4.examples.ga.mathfunctions</commons.osgi.symbolicName>
34+
<commons.osgi.export>org.apache.commons.math4.examples.ga.mathfunctions</commons.osgi.export>
3535
<!-- Java 9+ -->
36-
<commons.automatic.module.name>org.apache.commons.math4.examples.genetics.mathfunctions</commons.automatic.module.name>
36+
<commons.automatic.module.name>org.apache.commons.math4.examples.ga.mathfunctions</commons.automatic.module.name>
3737
<!-- Workaround to avoid duplicating config files. -->
3838
<math.parent.dir>${basedir}/../../..</math.parent.dir>
3939

40-
<uberjar.name>examples-genetics-mathfunctions</uberjar.name>
41-
<project.mainClass>org.apache.commons.math4.examples.genetics.mathfunctions.Dimension2FunctionOptimizer</project.mainClass>
40+
<uberjar.name>examples-ga-mathfunctions</uberjar.name>
41+
<project.mainClass>org.apache.commons.math4.examples.ga.mathfunctions.Dimension2FunctionOptimizer</project.mainClass>
4242
</properties>
4343

4444
</project>

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/Coordinate.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Coordinate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package org.apache.commons.math4.examples.genetics.mathfunctions;
17+
package org.apache.commons.math4.examples.ga.mathfunctions;
1818

1919
/**
2020
* This class represents the coordinate of the problem domain i.e. the phenotype of chromosome.

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/Dimension2Decoder.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Dimension2Decoder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package org.apache.commons.math4.examples.genetics.mathfunctions;
17+
package org.apache.commons.math4.examples.ga.mathfunctions;
1818

1919
import java.util.List;
2020

21-
import org.apache.commons.math4.genetics.chromosome.AbstractListChromosome;
22-
import org.apache.commons.math4.genetics.chromosome.BinaryChromosome;
23-
import org.apache.commons.math4.genetics.decoder.AbstractListChromosomeDecoder;
21+
import org.apache.commons.math4.ga.chromosome.AbstractListChromosome;
22+
import org.apache.commons.math4.ga.chromosome.BinaryChromosome;
23+
import org.apache.commons.math4.ga.decoder.AbstractListChromosomeDecoder;
2424

2525
/**
2626
* Decoder to convert chromosome's binary genotype to phenotype

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/Dimension2FitnessFunction.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Dimension2FitnessFunction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.math4.examples.genetics.mathfunctions;
18+
package org.apache.commons.math4.examples.ga.mathfunctions;
1919

20-
import org.apache.commons.math4.genetics.fitness.FitnessFunction;
20+
import org.apache.commons.math4.ga.fitness.FitnessFunction;
2121

2222
/**
2323
* This class represents the mathematical fitness function for optimizing a 2

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/Dimension2FunctionOptimizer.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/Dimension2FunctionOptimizer.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,23 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.math4.examples.genetics.mathfunctions;
19-
20-
import org.apache.commons.math4.examples.genetics.mathfunctions.utils.Constants;
21-
22-
import org.apache.commons.math4.examples.genetics.mathfunctions.utils.GraphPlotter;
23-
import org.apache.commons.math4.genetics.GeneticAlgorithm;
24-
import org.apache.commons.math4.genetics.chromosome.BinaryChromosome;
25-
import org.apache.commons.math4.genetics.chromosome.Chromosome;
26-
import org.apache.commons.math4.genetics.convergencecond.StoppingCondition;
27-
import org.apache.commons.math4.genetics.convergencecond.UnchangedBestFitness;
28-
import org.apache.commons.math4.genetics.crossover.OnePointCrossover;
29-
import org.apache.commons.math4.genetics.listener.ConvergenceListenerRegistry;
30-
import org.apache.commons.math4.genetics.listener.PopulationStatisticsLogger;
31-
import org.apache.commons.math4.genetics.mutation.BinaryMutation;
32-
import org.apache.commons.math4.genetics.population.ListPopulation;
33-
import org.apache.commons.math4.genetics.population.Population;
34-
import org.apache.commons.math4.genetics.selection.TournamentSelection;
35-
import org.apache.commons.math4.genetics.utils.ConsoleLogger;
18+
package org.apache.commons.math4.examples.ga.mathfunctions;
19+
20+
import org.apache.commons.math4.ga.crossover.OnePointCrossover;
21+
import org.apache.commons.math4.ga.convergencecond.UnchangedBestFitness;
22+
import org.apache.commons.math4.examples.ga.mathfunctions.utils.Constants;
23+
import org.apache.commons.math4.examples.ga.mathfunctions.utils.GraphPlotter;
24+
import org.apache.commons.math4.ga.GeneticAlgorithm;
25+
import org.apache.commons.math4.ga.chromosome.BinaryChromosome;
26+
import org.apache.commons.math4.ga.chromosome.Chromosome;
27+
import org.apache.commons.math4.ga.convergencecond.StoppingCondition;
28+
import org.apache.commons.math4.ga.listener.ConvergenceListenerRegistry;
29+
import org.apache.commons.math4.ga.listener.PopulationStatisticsLogger;
30+
import org.apache.commons.math4.ga.mutation.BinaryMutation;
31+
import org.apache.commons.math4.ga.population.ListPopulation;
32+
import org.apache.commons.math4.ga.population.Population;
33+
import org.apache.commons.math4.ga.selection.TournamentSelection;
34+
import org.apache.commons.math4.ga.utils.ConsoleLogger;
3635

3736
/**
3837
* This class represents an optimizer for a 2-dimensional math function using

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/legacy/Dimension2FunctionOptimizerLegacy.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/Dimension2FunctionOptimizerLegacy.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
package org.apache.commons.math4.examples.genetics.mathfunctions.legacy;
17+
package org.apache.commons.math4.examples.ga.mathfunctions.legacy;
1818

1919
import java.io.BufferedWriter;
20-
2120
import java.io.IOException;
2221
import java.io.OutputStreamWriter;
2322

@@ -30,8 +29,8 @@
3029
import org.apache.commons.math3.genetics.Population;
3130
import org.apache.commons.math3.genetics.StoppingCondition;
3231
import org.apache.commons.math3.genetics.TournamentSelection;
33-
import org.apache.commons.math4.examples.genetics.mathfunctions.utils.Constants;
34-
import org.apache.commons.math4.genetics.exception.GeneticException;
32+
import org.apache.commons.math4.examples.ga.mathfunctions.utils.Constants;
33+
import org.apache.commons.math4.ga.exception.GeneticException;
3534

3635
/**
3736
* This class represents an optimizer for a 2-dimensional math function using

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/legacy/LegacyBinaryChromosome.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/LegacyBinaryChromosome.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.math4.examples.genetics.mathfunctions.legacy;
18+
package org.apache.commons.math4.examples.ga.mathfunctions.legacy;
1919

2020
import java.util.List;
2121

commons-math-examples/examples-genetics/examples-genetics-math-functions/src/main/java/org/apache/commons/math4/examples/genetics/mathfunctions/legacy/UnchangedBestFitness.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/UnchangedBestFitness.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.commons.math4.examples.genetics.mathfunctions.legacy;
18+
package org.apache.commons.math4.examples.ga.mathfunctions.legacy;
1919

2020
import org.apache.commons.math3.genetics.Population;
2121
import org.apache.commons.math3.genetics.StoppingCondition;

commons-math-examples/examples-genetics/examples-genetics-tsp/src/main/java/org/apache/commons/math4/examples/genetics/tsp/commons/package-info.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/legacy/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
/**
1818
* This package provides Genetic Algorithms components and implementations.
1919
*/
20-
package org.apache.commons.math4.examples.genetics.tsp.commons;
20+
package org.apache.commons.math4.examples.ga.mathfunctions.legacy;

commons-math4-genetics/src/main/java/org/apache/commons/math4/genetics/convergencecond/package-info.java renamed to commons-math-examples/examples-ga/examples-ga-math-functions/src/main/java/org/apache/commons/math4/examples/ga/mathfunctions/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
/**
1818
* This package provides Genetic Algorithms components and implementations.
1919
*/
20-
package org.apache.commons.math4.genetics.convergencecond;
20+
package org.apache.commons.math4.examples.ga.mathfunctions;

0 commit comments

Comments
 (0)