|
Evolvica Core API Version 0.6.2 Last Modified: June 29 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.FloatArrayInitializer
Creation of float arrays. This class creates an individuals containing an array of float numbers. The array size and the range of values can be specified.
Field Summary | |
protected int |
arraySize
Size of the array to generated. |
protected float |
lowerBound
Lower bound for the random integers (inclusive). |
protected float |
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 | |
FloatArrayInitializer()
Constructor. |
|
FloatArrayInitializer(int arraySize,
float lowerBound,
float upperBound)
Constructor. |
Method Summary | |
protected IGenotype |
createGenotype()
Creates a new genotype. |
int |
getArraySize()
Returns the array size. |
float |
getLowerBound()
Returns the lower bound. |
float |
getUpperBound()
Returns the upper bound. |
void |
setArraySize(int arraySize)
Sets the array size. |
void |
setLowerBound(float lowerBound)
Sets the lower bound. |
void |
setUpperBound(float upperBound)
Sets the upper bound. |
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 float lowerBound
protected float upperBound
Constructor Detail |
public FloatArrayInitializer()
public FloatArrayInitializer(int arraySize, float lowerBound, float upperBound)
arraySize
- size of the array to be generatedlowerBound
- lower bound for integersupperBound
- upper bound for integersMethod Detail |
protected IGenotype createGenotype()
AbstractInitializer
createGenotype
in class AbstractInitializer
AbstractInitializer.createGenotype()
public int getArraySize()
public float getLowerBound()
public float getUpperBound()
public void setArraySize(int arraySize) throws java.beans.PropertyVetoException
arraySize
- the array size to set
java.beans.PropertyVetoException
public void setLowerBound(float lowerBound) throws java.beans.PropertyVetoException
lowerBound
- the lower bound to set
java.beans.PropertyVetoException
public void setUpperBound(float upperBound) throws java.beans.PropertyVetoException
upperBound
- the upper bound to set
java.beans.PropertyVetoException
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |