All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.cilib.entity.SocialEntity Maven / Gradle / Ivy

Go to download

A library of composable components enabling simpler Computational Intelligence

There is a newer version: 0.8
Show newest version
/**           __  __
 *    _____ _/ /_/ /_    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