net.sourceforge.cilib.entity
Interface SocialEntity

All Superinterfaces:
Cloneable, Comparable<Entity>, Entity, Serializable
All Known Subinterfaces:
Particle
All Known Implementing Classes:
AbstractParticle, ChargedParticle, CoherenceParticle, DeviationDecorator, DynamicParticle, LFDecorator, MultiObjectiveParticle, ParticleDecorator, RNAParticle, StandardParticle

public interface SocialEntity
extends Entity, 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.

Author:
gpampara

Method Summary
 NeighbourhoodBestUpdateStrategy getNeighbourhoodBestUpdateStrategy()
          Get the reference to the currently employed NeighbourhoodBestUpdateStrategy.
 Fitness getSocialBestFitness()
          Get the current social best fitness.
 void setNeighbourhoodBestUpdateStrategy(NeighbourhoodBestUpdateStrategy neighbourhoodBestUpdateStrategy)
          Set the NeighbourhoodBestUpdateStrategy to be used by the Entity.
 
Methods inherited from interface net.sourceforge.cilib.entity.Entity
calculateFitness, calculateFitness, compareTo, getBestFitness, getCandidateSolution, getClone, getDimension, getFitness, getFitnessCalculator, getId, getProperties, initialise, reinitialise, setCandidateSolution, setProperties
 

Method Detail

getSocialBestFitness

Fitness getSocialBestFitness()
Get the current social best fitness. This Fitness value is dependent on the current NeighbourhoodBestUpdateStrategy.

Returns:
The fitness based on the currently set NeighbourhoodBestUpdateStrategy.

getNeighbourhoodBestUpdateStrategy

NeighbourhoodBestUpdateStrategy getNeighbourhoodBestUpdateStrategy()
Get the reference to the currently employed NeighbourhoodBestUpdateStrategy.

Returns:
A reference to the current NeighbourhoodBestUpdateStrategy object

setNeighbourhoodBestUpdateStrategy

void setNeighbourhoodBestUpdateStrategy(NeighbourhoodBestUpdateStrategy neighbourhoodBestUpdateStrategy)
Set the NeighbourhoodBestUpdateStrategy to be used by the Entity.

Parameters:
neighbourhoodBestUpdateStrategy - The NeighbourhoodBestUpdateStrategy to be used


Copyright © 2009 CIRG. All Rights Reserved.