jef.mixers
Interface DnaMixer

All Known Implementing Classes:
DnaSimpleMixer

public interface DnaMixer

This is the interface every dna mixer has to implement, thus here are outlined all the methods common to every dna mixer implementation.

Author:
frusso

Method Summary
 Dna mix()
          The mix() method is the entry point for applications willing to mix two Dna instances leveraging on the adopted DnaMixer implementation's logic.
 void setDnas(Dna dnaX, Dna dnaY)
          This method sets the two Dna instances that will be used for generating the new one.
 

Method Detail

setDnas

void setDnas(Dna dnaX,
             Dna dnaY)
This method sets the two Dna instances that will be used for generating the new one.

Parameters:
dnaX - The first Dna instance.
dnaY - The second Dna instance

mix

Dna mix()
        throws MixerException,
               InstantiatorException
The mix() method is the entry point for applications willing to mix two Dna instances leveraging on the adopted DnaMixer implementation's logic.

Returns:
Dna The result of the mix
Throws:
MixerException
InstantiatorException