jmetal.operators.selection
Class RandomSelection

java.lang.Object
  extended by jmetal.core.Operator
      extended by jmetal.operators.selection.Selection
          extended by jmetal.operators.selection.RandomSelection
All Implemented Interfaces:
java.io.Serializable

public class RandomSelection
extends Selection

This class implements a random selection operator used for selecting two random parents

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Operator
parameters_
 
Constructor Summary
RandomSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
           
 
Method Summary
 java.lang.Object execute(java.lang.Object object)
          Performs the operation
 
Methods inherited from class jmetal.core.Operator
getParameter, setParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomSelection

public RandomSelection(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Method Detail

execute

public java.lang.Object execute(java.lang.Object object)
Performs the operation

Specified by:
execute in class Operator
Parameters:
object - Object representing a SolutionSet.
Returns:
an object representing an array with the selected parents