Skip to content

Commit

Permalink
set subversion properties on new files.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@643028 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Brent Worden committed Mar 31, 2008
1 parent 9e80375 commit edbf811
Show file tree
Hide file tree
Showing 7 changed files with 402 additions and 402 deletions.
116 changes: 58 additions & 58 deletions src/java/org/apache/commons/math/genetics/ChromosomePair.java
@@ -1,58 +1,58 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

/**
* A pair of {@link Chromosome} objects.
*/
public class ChromosomePair {
/** the first chromosome in the pair. */
private Chromosome first;

/** the second chromosome in the pair. */
private Chromosome second;

/**
* Create a chromosome pair.
*
* @param c1 the first chromosome.
* @param c2 the second chromosome.
*/
public ChromosomePair(Chromosome c1, Chromosome c2) {
super();
first = c1;
second = c2;
}

/**
* Access the first chromosome.
*
* @return the first chromosome.
*/
public Chromosome getFirst() {
return first;
}

/**
* Access the second chromosome.
*
* @return the second chromosome.
*/
public Chromosome getSecond() {
return second;
}
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

/**
* A pair of {@link Chromosome} objects.
*/
public class ChromosomePair {
/** the first chromosome in the pair. */
private Chromosome first;

/** the second chromosome in the pair. */
private Chromosome second;

/**
* Create a chromosome pair.
*
* @param c1 the first chromosome.
* @param c2 the second chromosome.
*/
public ChromosomePair(Chromosome c1, Chromosome c2) {
super();
first = c1;
second = c2;
}

/**
* Access the first chromosome.
*
* @return the first chromosome.
*/
public Chromosome getFirst() {
return first;
}

/**
* Access the second chromosome.
*
* @return the second chromosome.
*/
public Chromosome getSecond() {
return second;
}
}
64 changes: 32 additions & 32 deletions src/java/org/apache/commons/math/genetics/CrossoverPolicy.java
@@ -1,32 +1,32 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

/**
* Policy used to create a pair of new chromosomes by performing a crossover
* operation on a source pair of chromosomes.
*/
public interface CrossoverPolicy {
/**
* Perform a crossover operation on the given chromosomes.
*
* @param first the first chromosome.
* @param second the second chromosome.
* @return the pair of new chromosomes that resulted from the crossover.
*/
ChromosomePair crossover(Chromosome first, Chromosome second);
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

/**
* Policy used to create a pair of new chromosomes by performing a crossover
* operation on a source pair of chromosomes.
*/
public interface CrossoverPolicy {
/**
* Perform a crossover operation on the given chromosomes.
*
* @param first the first chromosome.
* @param second the second chromosome.
* @return the pair of new chromosomes that resulted from the crossover.
*/
ChromosomePair crossover(Chromosome first, Chromosome second);
}
40 changes: 20 additions & 20 deletions src/java/org/apache/commons/math/genetics/Fitness.java
@@ -1,20 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

public interface Fitness extends Comparable {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.math.genetics;

public interface Fitness extends Comparable {
}

0 comments on commit edbf811

Please sign in to comment.