net.sourceforge.cilib.entity
Interface CandidateSolution

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
AbstractBee, AbstractEntity, AbstractParticle, CandidateSolutionMixin, ChargedParticle, CoherenceParticle, CooperativeEntity, DeviationDecorator, DynamicParticle, Harmony, Individual, LFDecorator, MultiObjectiveParticle, OnlookerBee, ParticleDecorator, RNAParticle, StandardParticle, WorkerBee

public interface CandidateSolution
extends Cloneable

Interface to describe the notion of a CandidateSoution. In general a CandidateSolution contains a Type to describe the solution the CandidateSolution represents together with its associated Fitness value.


Method Summary
 StructuredType getCandidateSolution()
          Get the contents of the CandidateSoltion.
 Fitness getFitness()
          Obtain the Fitness of the current CandidateSolution.
 Blackboard<Enum<?>,Type> getProperties()
          Get the properties associated with this CandidateSolution.
 void setCandidateSolution(StructuredType contents)
          Set the solution that the CandidateSolution represents.
 void setProperties(Blackboard<Enum<?>,Type> properties)
          Set the Blackboard defining the properties of the CandidateSolution.
 
Methods inherited from interface net.sourceforge.cilib.util.Cloneable
getClone
 

Method Detail

getCandidateSolution

StructuredType getCandidateSolution()
Get the contents of the CandidateSoltion. i.e.: The potential solution.

Returns:
A Type representing the solution.

setCandidateSolution

void setCandidateSolution(StructuredType contents)
Set the solution that the CandidateSolution represents.

Parameters:
contents - The potential solution to set.

getFitness

Fitness getFitness()
Obtain the Fitness of the current CandidateSolution.

Returns:
The current Fitness value.

setProperties

void setProperties(Blackboard<Enum<?>,Type> properties)
Set the Blackboard defining the properties of the CandidateSolution.

Parameters:
properties - The properties to set.

getProperties

Blackboard<Enum<?>,Type> getProperties()
Get the properties associated with this CandidateSolution.

Returns:
The properties of the CandidateSolution.


Copyright © 2009 CIRG. All Rights Reserved.