eaLib API Docs
Last Modified : January 7 2002

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.
 
Fields inherited from class mss.ea.ini.Initialization
number, setSize
 
Fields inherited from class mss.ea.core.GeneticOperator
description, ID, name
 
Constructor Summary
IntegerInitialization(int lowerbound, int upperbound)
          Constructor.
IntegerInitialization(int lowerbound, int upperbound, int indNumber)
          Constructor.
IntegerInitialization(int lowerbound, int upperbound, int indNumber, int setSize)
          Constructor.
 
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 mss.ea.ini.Initialization
getChromosomeSize, getIndividualNumber, getStream, next, setChromosomeSize, setIndividualNumber
 
Methods inherited from class mss.ea.core.GeneticOperator
getDescription, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lowerBound

protected int lowerBound
Lower bound of generated integer values.

upperBound

protected int upperBound
Upper bound of generated integer values.
Constructor Detail

IntegerInitialization

public IntegerInitialization(int lowerbound,
                             int upperbound)
Constructor.
Parameters:
lowerbound - lower bound of generated integer values
upperbound - upper bound of generated integer values

IntegerInitialization

public IntegerInitialization(int lowerbound,
                             int upperbound,
                             int indNumber)
Constructor.
Parameters:
lowerbound - lower bound of generated integer values
upperbound - upper bound of generated integer values
indNumber - 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 values
upperbound - upper bound of generated integer values
indNumber - number of indiviuduals to be generated
setSize - number of chromosomes to be generated
Method Detail

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

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS