Package org.opt4j.operators.copy
Interface Copy<G extends org.opt4j.core.Genotype>
-
- Type Parameters:
G
- the type of genotype
- All Superinterfaces:
org.opt4j.core.optimizer.Operator<G>
- All Known Implementing Classes:
CopyGenericImplementation
,CopyList
public interface Copy<G extends org.opt4j.core.Genotype> extends org.opt4j.core.optimizer.Operator<G>
Operator that creates copies of aGenotype
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description G
copy(G genotype)
Copies aGenotype
.default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>>
getOperatorType()
-
-
-
Method Detail
-
copy
G copy(G genotype)
Copies aGenotype
. This operation is a deep copy whereas unit elements are not cloned.- Parameters:
genotype
- the genotype to copy- Returns:
- the copy of the genotype
-
getOperatorType
default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
- Specified by:
getOperatorType
in interfaceorg.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>
-
-