mss.ea.ini
Class IntegerInitialization
java.lang.Object
|
+--mss.ea.core.GeneticOperator
|
+--mss.ea.ini.Initialization
|
+--mss.ea.ini.IntegerInitialization
- All Implemented Interfaces:
- IndividualSource
- public class IntegerInitialization
- extends Initialization
Creation of individuals containing integer chromosomes.
- Since:
- 0.2.2
- Version:
- $Revision: 1.3 $ $Date: 2001/12/04 14:08:39 $
- Author:
- Andreas Rummler
Field Summary |
protected int |
lowerBound
Lower bound of generated integer values. |
protected int |
upperBound
Upper bound of generated integer values. |
Method Summary |
protected int |
createInteger()
Creates a random integer according to the parameters given in the constructor. |
ChromosomeSet |
createSet()
Creates a chromosome set containing chromosomes of type integer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lowerBound
protected int lowerBound
- Lower bound of generated integer values.
upperBound
protected int upperBound
- Upper bound of generated integer values.
IntegerInitialization
public IntegerInitialization(int lowerbound,
int upperbound)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated integer valuesupperbound
- upper bound of generated integer values
IntegerInitialization
public IntegerInitialization(int lowerbound,
int upperbound,
int indNumber)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated integer valuesupperbound
- upper bound of generated integer valuesindNumber
- number of indiviuduals to be generated
IntegerInitialization
public IntegerInitialization(int lowerbound,
int upperbound,
int indNumber,
int setSize)
- Constructor.
- Parameters:
lowerbound
- lower bound of generated integer valuesupperbound
- upper bound of generated integer valuesindNumber
- number of indiviuduals to be generatedsetSize
- number of chromosomes to be generated
createSet
public ChromosomeSet createSet()
- Creates a chromosome set containing chromosomes of type integer.
- Overrides:
createSet
in class Initialization
- Returns:
- generated chromosome set
createInteger
protected int createInteger()
- Creates a random integer according to the parameters given in the constructor.
- Returns:
- generated integer number
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS