|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.ProgramSolverFactory
public class ProgramSolverFactory
This class is used to create ProgramSolver
objects.
Field Summary | |
---|---|
static java.lang.String |
CPLEX
The string used to denote the CPLEX program solver from ILOG. |
static java.lang.String |
GLPK
The string used to denote the GLPK program solver from GNU. |
static UnmodifiableMap<java.lang.String,java.lang.String> |
nameClassMap
The correspondence between the strings used to denote a particular program solver and the name of the actual class it represents. |
static java.lang.String |
PARAM_FILE
The keyword used to denote a parameter file for a program solver. |
static java.lang.String |
SOLVER
The keyword used to denote the name of a program solver. |
Method Summary | ||
---|---|---|
static ApplicationException |
interpret(ProgramSolverException e)
Interprets a program solver exception and returns a corresponding application exception. |
|
static
|
make(ManagerInput<java.lang.String,java.lang.String> input,
java.io.PrintWriter out)
Uses the information contained in the provided input to create a new program solver object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SOLVER
public static final java.lang.String PARAM_FILE
public static final java.lang.String GLPK
public static final java.lang.String CPLEX
public static final UnmodifiableMap<java.lang.String,java.lang.String> nameClassMap
Method Detail |
---|
public static <R,C> ProgramSolver<R,C> make(ManagerInput<java.lang.String,java.lang.String> input, java.io.PrintWriter out)
PARAM_FILE
is present, the program solver indicated by
SOLVER
must have a functioning
ProgramSolver.setParamFile(String) method.
R
- the row type.C
- the column type.input
- the input from which information is used to create a new
program solver object.out
- the print writer to which status messages will be printed.
ApplicationException
- if a problem ocurrs while creating a program
solver object.
java.lang.UnsupportedOperationException
- if a call to
ProgramSolver.setParamFile(String) fails.public static ApplicationException interpret(ProgramSolverException e)
e
- the program solver exception to be interpretted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |