|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneticAlgorithm
This is the GenericAlgoritm interface.
All Genetic Algorithms must implement this interface. The constructor doesn't
matter, because it is created by an interface, usually also provided by the
programer of the algorithm.
Take into account that the Habitat service deployed in the servent will only
call this two methods:
start
will be called possibly only once, to store the
fitnessFunction and the stop condition into member varialbles
getSolutions
will be called more often, each time somebody
wants to know the current solution set. Notice that this can be implemented as
a thread that executes the FitnessFunction.evaluate ()
methods
in background. While executing, clients can access at the Best solution
stored at the moment, but possibly not the best one.
Method Summary | |
---|---|
SolutionSet |
getSolutions()
Return the solutions stored at the moment. |
void |
start(FitnessFunction function,
StopCondition condition,
ServicePool pool)
Start the Genetic Algorithm using the indicated Fitness function. |
Method Detail |
---|
void start(FitnessFunction function, StopCondition condition, ServicePool pool)
function
- fitnessFuncioncondition
- stop conditionpool
- ServicePool to be used for this GA runSolutionSet getSolutions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |