|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.generators.contchain.RandomGenerator
public class RandomGenerator
This class generates chains of double randomly.
| Constructor Summary | |
|---|---|
RandomGenerator()
|
|
| Method Summary | |
|---|---|
Individual[] |
generate(int nIndividuals)
Creates individuals. |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of each object. |
int |
getSize()
Getter for property size. |
void |
getTaskInformation(LiOTask task)
Extracts information of the task necessary to create individuals. |
static void |
main(java.lang.String[] args)
Main class to test the class. |
void |
setBounds(ContChainBounds bounds)
Fixes the range of values for individuals and their size. |
void |
setSize(int size)
Setter for property size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomGenerator()
| Method Detail |
|---|
public void getTaskInformation(LiOTask task)
getTaskInformation in interface LiODependentResourcetask - Task which defines size of the created individuals.public void setBounds(ContChainBounds bounds)
bounds - Object containing the description of the individuals.public Individual[] generate(int nIndividuals)
generate in interface GeneratornIndividuals - Number of individual that must be created.
public LiOResourceDefinition getDefinition()
getDefinition in interface LiOResourcepublic static void main(java.lang.String[] args)
public int getSize()
public void setSize(int size)
size - New value of property size.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||