|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.mutation.contchain.RandomMutation
public class RandomMutation
Constructor Summary | |
---|---|
RandomMutation()
|
Method Summary | |
---|---|
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of each object. |
void |
getTaskInformation(LiOTask task)
Allows passing information of the task to the resource. |
static void |
main(java.lang.String[] args)
Main class that allows testing the class. |
void |
mutate(Individual ind)
Applies mutation to one position choosen at random. |
void |
mutate(Individual ind,
double probability)
Applies mutation to each position depending on the probability. |
void |
setBounds(ContChainBounds bounds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomMutation()
Method Detail |
---|
public void getTaskInformation(LiOTask task)
getTaskInformation
in interface LiODependentResource
task
- Task.public void setBounds(ContChainBounds bounds)
public void mutate(Individual ind)
mutate
in interface Mutation
individual
- Individual that will be mutated.public void mutate(Individual ind, double probability)
mutate
in interface Mutation
individual
- Individual that will be mutated.pMutationProbability
- probability of carrying out the mutation.public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public static void main(java.lang.String[] args)
args
- Arguments passed by command line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |