net.sourceforge.cilib.coevolution.competitors
Class Competitor

java.lang.Object
  extended by net.sourceforge.cilib.coevolution.competitors.Competitor
All Implemented Interfaces:
Serializable, Cloneable

public class Competitor
extends Object
implements Cloneable

Author:
leo This class contains the entity data, fitness and population id of a competitor used in a coevolution algorithm
See Also:
Serialized Form

Constructor Summary
Competitor(Competitor other)
           
Competitor(Type entityData, Fitness entityFitness, int populationID)
           
Competitor(Type entityData, int populationID)
           
 
Method Summary
 Competitor getClone()
          Create a cloned copy of the current object and return it.
 Type getEntityData()
           
 Fitness getEntityFitness()
           
 int getPopulationID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Competitor

public Competitor(Type entityData,
                  Fitness entityFitness,
                  int populationID)

Competitor

public Competitor(Type entityData,
                  int populationID)

Competitor

public Competitor(Competitor other)
Method Detail

getEntityData

public Type getEntityData()

getPopulationID

public int getPopulationID()

getClone

public Competitor getClone()
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()

getEntityFitness

public Fitness getEntityFitness()


Copyright © 2009 CIRG. All Rights Reserved.