net.sourceforge.cilib.algorithm.population.knowledgetransferstrategies
Interface KnowledgeTransferStrategy

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
SelectiveKnowledgeTransferStrategy

public interface KnowledgeTransferStrategy
extends Cloneable

This interface is used in combination with a MultiPopulationBasedAlgorithm to enable different types of knowledge (like global best particle positions etc.) to be shared among different sub-populations during a search.

Author:
Wiehann Matthysen

Method Summary
 KnowledgeTransferStrategy getClone()
          Create a cloned copy of the current object and return it.
 Type transferKnowledge(List<PopulationBasedAlgorithm> allPopulations)
          Returns knowledge that was gained from an entity within the list of populations.
 

Method Detail

getClone

KnowledgeTransferStrategy getClone()
Description copied from interface: Cloneable
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

transferKnowledge

Type transferKnowledge(List<PopulationBasedAlgorithm> allPopulations)
Returns knowledge that was gained from an entity within the list of populations.

Parameters:
allPopulations - The list of populations that will be used to select an entity who's knowledge will be used.
Returns:
The knowledge that was gained.


Copyright © 2009 CIRG. All Rights Reserved.