![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.cilib.entity.SocialEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cilib-library Show documentation
Show all versions of cilib-library Show documentation
A library of composable components enabling simpler Computational Intelligence
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.entity;
import net.sourceforge.cilib.problem.solution.Fitness;
import net.sourceforge.cilib.pso.positionprovider.NeighbourhoodBestUpdateStrategy;
import net.sourceforge.cilib.util.Cloneable;
/**
*
* An Entity that can recieve information from other Entities.
*
*
* Social infomation sharing is very important. This is a marker interface
* that will identify Entity objects that are able to transfer knowledge to
* other Entities.
*
*
*/
public interface SocialEntity extends Cloneable {
/**
* Get the current social best fitness. This {@linkplain Fitness} value is dependent
* on the current {@linkplain NeighbourhoodBestUpdateStrategy}.
* @return The fitness based on the currently set {@linkplain NeighbourhoodBestUpdateStrategy}.
*/
Fitness getSocialFitness();
/**
* Get the reference to the currently employed NeighbourhoodBestUpdateStrategy
.
* @return A reference to the current NeighbourhoodBestUpdateStrategy
object
*/
NeighbourhoodBestUpdateStrategy getNeighbourhoodBestUpdateStrategy();
/**
* Set the NeighbourhoodBestUpdateStrategy
to be used by the {@linkplain Entity}.
* @param neighbourhoodBestUpdateStrategy The NeighbourhoodBestUpdateStrategy
to be used
*/
void setNeighbourhoodBestUpdateStrategy(NeighbourhoodBestUpdateStrategy neighbourhoodBestUpdateStrategy);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy