lio.generators.permutation
Class RandomGenerator

java.lang.Object
  extended by lio.generators.permutation.RandomGenerator
All Implemented Interfaces:
LiODependentResource, LiOResource, Generator

public class RandomGenerator
extends java.lang.Object
implements Generator, LiODependentResource

This class generates permutations 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.
 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 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

RandomGenerator

public RandomGenerator()
Method Detail

getTaskInformation

public void getTaskInformation(LiOTask task)
Extracts information of the task necessary to create individuals.

Specified by:
getTaskInformation in interface LiODependentResource
Parameters:
task - Task which defines size of the created individuals.

setSize

public void setSize(int pSize)
Set the size of the individuals which are going to be created.

Parameters:
pSize - Size of the individuals.

generate

public Individual[] generate(int nIndividuals)
Creates individuals.

Specified by:
generate in interface Generator
Parameters:
nIndividuals - Number of individual that must be created.
Returns:
an array of individuals.

getDefinition

public LiOResourceDefinition getDefinition()
Return a LiOResDescription object with the information of each object. That object holds the name and all parameters that describe the object

Specified by:
getDefinition in interface LiOResource
Returns:
A definition of the object.

main

public static void main(java.lang.String[] args)
Main class to test the class.