jmetal.operators.crossover
Class SBXSinglePointCrossover

java.lang.Object
  extended by jmetal.core.Operator
      extended by jmetal.operators.crossover.Crossover
          extended by jmetal.operators.crossover.SBXSinglePointCrossover
All Implemented Interfaces:
java.io.Serializable

public class SBXSinglePointCrossover
extends Crossover

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmetal.core.Operator
parameters_
 
Constructor Summary
SBXSinglePointCrossover(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
          Constructor
 
Method Summary
 Solution[] doCrossover(java.lang.Double realProbability, java.lang.Double binaryProbability, Solution parent1, Solution parent2)
          Perform the crossover operation.
 java.lang.Object execute(java.lang.Object object)
          Abstract method that must be defined by all the operators.
 
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

SBXSinglePointCrossover

public SBXSinglePointCrossover(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Constructor

Method Detail

doCrossover

public Solution[] doCrossover(java.lang.Double realProbability,
                              java.lang.Double binaryProbability,
                              Solution parent1,
                              Solution parent2)
                       throws JMException
Perform the crossover operation.

Parameters:
realProbability - Crossover probability
parent1 - The first parent
parent2 - The second parent
Returns:
An array containing the two offsprings
Throws:
JMException

execute

public java.lang.Object execute(java.lang.Object object)
                         throws JMException
Description copied from class: Operator
Abstract method that must be defined by all the operators. When invoked, this method executes the operator represented by the current object.

Specified by:
execute in class Operator
Parameters:
object - This param inherits from Object to allow different kinds of parameters for each operator. For example, a selection operator typically receives a SolutionSet as a parameter, while a mutation operator receives a Solution.
Returns:
An object reference. The returned value depends on the operator.
Throws:
JMException