Module io.jenetics.base
Package io.jenetics
Class AbstractAlterer<G extends Gene<?,G>,C extends Comparable<? super C>>  
java.lang.Object
io.jenetics.AbstractAlterer<G,C> 
- All Implemented Interfaces:
- Alterer<G,- C> 
- Direct Known Subclasses:
- Mutator,- Recombinator
public abstract class AbstractAlterer<G extends Gene<?,G>,C extends Comparable<? super C>>  
extends Object
implements Alterer<G,C> 
Abstract implementation of the alterer interface.
- Since:
- 1.0
- Version:
- 6.0
- 
Field SummaryFieldsFields inherited from interface io.jenetics.AltererDEFAULT_ALTER_PROBABILITY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractAlterer(double probability) Constructs an alterer with a given recombination probability.
- 
Method SummaryModifier and TypeMethodDescriptiondoubleReturn the recombination/alter probability for this alterer.
- 
Field Details- 
_probabilityThe altering probability.
 
- 
- 
Constructor Details- 
AbstractAltererConstructs an alterer with a given recombination probability.- Parameters:
- probability- The recombination probability.
- Throws:
- IllegalArgumentException- if the- probabilityis not in the valid range of- [0, 1].
 
 
- 
- 
Method Details- 
probabilityReturn the recombination/alter probability for this alterer.- Returns:
- The recombination probability.
 
 
-