|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscpsolver.lpsolver.SolverFactory
public class SolverFactory
Basic service provider for the LinearProgramSolver interface. Loads all found classes and returns the first found class, if required. Implementation mainly inspired by
Method Summary | |
---|---|
static LinearProgramSolver |
getSolver(java.lang.String name)
Tries to get a specific solver by its name. |
static void |
main(java.lang.String[] args)
|
static LinearProgramSolver |
newDefault()
Searches for service provider of the LinearProgramSolver service and returns the first instance it found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LinearProgramSolver newDefault()
public static LinearProgramSolver getSolver(java.lang.String name)
newDefault
method,
the getSolver
method searches through the list of service providers and
compares the name
parameter to the result of the method call getName
of every service provider, until either the matching service provider is found and
returned or there are no further service providers available. In this case, the method
returns the same result as the newDefault
method.
name
- the name of the requested linear program solver
newDefault
method callpublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |