|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.init.AbstractInitializer
org.evolvica.core.init.IntegerArrayInitializer
Creation of integer arrays. This class creates an individuals containing an array of integers. The array size and the range of values can be specified.
| Field Summary | |
protected int |
arraySize
Size of the array to generated. |
protected int |
lowerBound
Lower bound for the random integers (inclusive). |
protected int |
upperBound
Upper bound for the random integers (exclusive). |
| Fields inherited from class org.evolvica.core.init.AbstractInitializer |
individualBuilder, setSize |
| Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
| Constructor Summary | |
IntegerArrayInitializer()
Constructor. |
|
IntegerArrayInitializer(int arraySize,
int lowerBound,
int upperBound)
Constructor. |
|
| Method Summary | |
protected IGenotype |
createGenotype()
Creates a new genotype. |
int |
getArraySize()
|
int |
getLowerBound()
|
int |
getUpperBound()
|
void |
setArraySize(int arraySize)
Sets the arraySize. |
void |
setLowerBound(int lowerBound)
Sets the lowerBound. |
void |
setUpperBound(int upperBound)
Sets the upperBound. |
| Methods inherited from class org.evolvica.core.init.AbstractInitializer |
create, createIndividualSet, getIndividualBuilder, getSetSize, setIndividualBuilder, setSetSize |
| Methods inherited from class org.evolvica.engine.AbstractOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.evolvica.engine.IOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Field Detail |
protected int arraySize
protected int lowerBound
protected int upperBound
| Constructor Detail |
public IntegerArrayInitializer()
public IntegerArrayInitializer(int arraySize,
int lowerBound,
int upperBound)
arraySize - size of the array to be generatedlowerBound - lower bound for integersupperBound - upper bound for integers| Method Detail |
protected IGenotype createGenotype()
AbstractInitializer
createGenotype in class AbstractInitializerAbstractInitializer.createGenotype()public int getArraySize()
public int getLowerBound()
public int getUpperBound()
public void setArraySize(int arraySize)
throws java.beans.PropertyVetoException
arraySize - The arraySize to set
java.beans.PropertyVetoException
public void setLowerBound(int lowerBound)
throws java.beans.PropertyVetoException
lowerBound - The lowerBound to set
java.beans.PropertyVetoException
public void setUpperBound(int upperBound)
throws java.beans.PropertyVetoException
upperBound - The upperBound to set
java.beans.PropertyVetoException
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||