net.sourceforge.cilib.util.selection.weighing.entity
Class SocialBestFitness

java.lang.Object
  extended by net.sourceforge.cilib.util.selection.weighing.entity.SocialBestFitness
All Implemented Interfaces:
EntityFitness<SocialEntity>

public class SocialBestFitness
extends Object
implements EntityFitness<SocialEntity>

Obtain the social best fitness value from a SocialEntity.

Author:
Wiehann Matthysen

Constructor Summary
SocialBestFitness()
           
 
Method Summary
 Fitness getFitness(SocialEntity entity)
          Obtain the Fitness of the provided entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialBestFitness

public SocialBestFitness()
Method Detail

getFitness

public Fitness getFitness(SocialEntity entity)
Obtain the Fitness of the provided entity. Obtains the social based fitness from the SocialEntity.

Specified by:
getFitness in interface EntityFitness<SocialEntity>
Parameters:
entity - The entity to query.
Returns:
The obtained Fitness value.


Copyright © 2009 CIRG. All Rights Reserved.