|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.entity.CandidateSolutionMixin
public class CandidateSolutionMixin
A CandidateSolution is a potential solution within an optimization.
CandidateSolution is a base class that all concrete Entity
instances inherit from. All Entity objects have their respective contents
represented and maintained within the Blackboard as defined by the
CandidateSolution.
| Constructor Summary | |
|---|---|
CandidateSolutionMixin()
Create the Mixin class, providing the reference to the shared Blackboard data structure. |
|
CandidateSolutionMixin(CandidateSolutionMixin copy)
Instantiate a new instance, based on the provided CandidateSolutionMixin. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
StructuredType |
getCandidateSolution()
Get the associated candidate solution representation that the current Entity represents. |
CandidateSolutionMixin |
getClone()
Get a clone of the current CandidateSolutionMixin. |
Fitness |
getFitness()
Obtain the Fitness of the current CandidateSolution. |
Blackboard<Enum<?>,Type> |
getProperties()
Get the properties associated with this CandidateSolution. |
int |
hashCode()
|
void |
setCandidateSolution(StructuredType candidateSolution)
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 class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CandidateSolutionMixin()
public CandidateSolutionMixin(CandidateSolutionMixin copy)
CandidateSolutionMixin.
This is a shallow copy instantiation.
copy - The template object to copy.| Method Detail |
|---|
public CandidateSolutionMixin getClone()
getClone in interface CloneableObject.clone()public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic StructuredType getCandidateSolution()
getCandidateSolution in interface CandidateSolutionpublic void setCandidateSolution(StructuredType candidateSolution)
CandidateSolution represents.
setCandidateSolution in interface CandidateSolutioncandidateSolution - The potential solution to set.public Fitness getFitness()
CandidateSolution.
getFitness in interface CandidateSolutionpublic Blackboard<Enum<?>,Type> getProperties()
CandidateSolution.
getProperties in interface CandidateSolutionCandidateSolution.public void setProperties(Blackboard<Enum<?>,Type> properties)
Blackboard defining the properties of the CandidateSolution.
setProperties in interface CandidateSolutionproperties - The properties to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||