|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.algorithm.template.AlgorithmicTemplate.Configuration
public static class AlgorithmicTemplate.Configuration
Default implementation of algorithmic configuration objects. Does not yet provide any additional parameters which would really justify the use of algorithmic configurations because of their benefits. Instead, this class is used as the base class for such algorithmic configuration implementations.
Constructor Summary | |
---|---|
|
AlgorithmicTemplate.Configuration(AlgorithmicProblem problem,
java.lang.Class algorithm)
Create a new configuration. |
protected |
AlgorithmicTemplate.Configuration(AlgorithmicProblem problem,
java.lang.Class algorithm,
java.lang.Class superClass)
Create a new configuration limited to certain classes of algorithms. |
Method Summary | |
---|---|
static AlgorithmicTemplate.Configuration |
flexible(AlgorithmicProblem problem,
java.util.Map properties,
java.lang.Class algorithm)
Create a new flexible configuration. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlgorithmicTemplate.Configuration(AlgorithmicProblem problem, java.lang.Class algorithm)
problem
- the problem to solve.algorithm
- the class of the AlgorithmicTemplate to instantiate for solving the problem.protected AlgorithmicTemplate.Configuration(AlgorithmicProblem problem, java.lang.Class algorithm, java.lang.Class superClass)
problem
- the problem to solve.algorithm
- the class of the AlgorithmicTemplate to instantiate for solving the problem.superClass
- the class which algorithm must be a subclass of.Method Detail |
---|
public AlgorithmicProblem getProblem()
AlgorithmicConfiguration
getProblem
in interface AlgorithmicConfiguration
public AlgorithmicTemplate getAlgorithm()
AlgorithmicConfiguration
getAlgorithm
in interface AlgorithmicConfiguration
public java.lang.Object solve()
AlgorithmicConfiguration
solve
in interface AlgorithmicConfiguration
AlgorithmicConfiguration.getProblem()
by using the algorithm
AlgorithmicConfiguration.getAlgorithm()
after adjusting our additional parameters.public static final AlgorithmicTemplate.Configuration flexible(AlgorithmicProblem problem, java.util.Map properties, java.lang.Class algorithm) throws java.beans.IntrospectionException
problem
- the problem to solve.properties
- the property values used for configuring the algorithm.
A Map<String,Object> mapping property names to their values.algorithm
- the class of the AlgorithmicTemplate to instantiate for solving the problem.
java.beans.IntrospectionException
- if algorithm could not be introspected.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |