|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlio.generators.bitchain.PseudoRandomGenerator
public class PseudoRandomGenerator
This class generates chains of bits randomly.
| Constructor Summary | |
|---|---|
PseudoRandomGenerator()
|
|
| Method Summary | |
|---|---|
Individual[] |
generate(int nIndividuals)
Creates individuals. |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of each object. |
long |
getSeed()
|
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 |
setSeed(long seed)
|
void |
setSize(int pSize)
Set the size of the individuals which are going to be created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PseudoRandomGenerator()
| Method Detail |
|---|
public void getTaskInformation(LiOTask task)
getTaskInformation in interface LiODependentResourcetask - Task which defines size of the created individuals.public void setSize(int pSize)
pSize - Size 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 long getSeed()
public void setSeed(long seed)
seed - The seed to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||