|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlgorithmicConfiguration
Algorithmic configurations provide the glue between a problem and an algorithm used for solving it. They know some aspects of the problem and translate them into the right choices of parameters for the specific instance of the algorithm. Unlike the algorithmic problems themselves, algorithmic configurations manage non-inherent parameters of the way the problem is really solved with the algorithm. So they define a lot more of how to tackle the problem, instead of just declaring what the problem really is. Since there may be far more than one way of solving one specific problem, you may also instantiate multiple different configurations solving the same problem with different algorithms and varying non-inherent parameters.
Note that the use of this interface is optional. If your problem only admits a single way of solving it, and does not want to encapsulate the passing and management of additional parameters in an algorithmic configuration, you can explicitly invoke the algorithm instance on the problem without loss of functionality. If, however, you want a convenient way of managing (and choosing from) several ways of solving the problem algorithmic configurations may be precisely what you need.
AlgorithmicProblem
,
AlgorithmicTemplate
Method Summary | |
---|---|
AlgorithmicTemplate |
getAlgorithm()
Gets the algorithm used for solving the problem. |
AlgorithmicProblem |
getProblem()
Gets the specific problem to solve. |
java.lang.Object |
solve()
Solves the problem with the algorithm with regard to the additional parameters managed by this algorithmic configuration. |
Method Detail |
---|
AlgorithmicProblem getProblem()
AlgorithmicTemplate getAlgorithm()
java.lang.Object solve()
getProblem()
by using the algorithm
getAlgorithm()
after adjusting our additional parameters.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |