Package jline.solvers.auto
Class SolverCandidate
java.lang.Object
jline.solvers.auto.SolverCandidate
One row of
SolverAUTO.findSolver(): a (family, method) pair this model
can be asked for, whether it runs, what kind of answer it returns and which
measures it can report.
The fields are the columns of the MATLAB table returned by
@SolverAUTO/findSolver.m and of the pandas frame returned by the
native python twin, under the same names, so a report can be compared across
the three codebases row for row.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn approximation of the model's true measures.static final StringA bracket rather than an estimate.static final StringAnswer kinds a method can return; seeSolverAUTO.methodClass(java.lang.String, java.lang.String, boolean, boolean, boolean, boolean).static final StringA seed-dependent estimate from a sample path.final StringThe method name to pass as a method name, e.g.final StringOne of the four CLASS_ constants.final StringThe measure groups the family answers, comma-joined.final StringWhy a refused pair was refused; empty whenrunnable.final booleanTrue when the model passes this method's own support gate.final StringThe method family: "mva", "ctmc", "ldes", ... -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantoString()static StringtoTable(List<SolverCandidate> rows) The rows as an aligned text table, the form the CLI and a console caller want.
-
Field Details
-
CLASS_EXACT
Answer kinds a method can return; seeSolverAUTO.methodClass(java.lang.String, java.lang.String, boolean, boolean, boolean, boolean).- See Also:
-
CLASS_APPROX
An approximation of the model's true measures.- See Also:
-
CLASS_BOUND
A bracket rather than an estimate.- See Also:
-
CLASS_SIMULATION
A seed-dependent estimate from a sample path.- See Also:
-
solver
The method family: "mva", "ctmc", "ldes", ... -
method
The method name to pass as a method name, e.g. "mva.exact". -
runnable
public final boolean runnableTrue when the model passes this method's own support gate. -
methodClass
One of the four CLASS_ constants. -
metrics
The measure groups the family answers, comma-joined. -
reason
Why a refused pair was refused; empty whenrunnable.
-
-
Constructor Details
-
SolverCandidate
public SolverCandidate(String solver, String method, boolean runnable, String methodClass, String metrics, String reason) - Parameters:
solver- the method familymethod- the qualified method namerunnable- whether the model passes this method's gatemethodClass- one of the CLASS_ constantsmetrics- comma-joined measure groupsreason- the refusal reason, empty when runnable
-
-
Method Details
-
getSolver
- Returns:
- the method family
-
getMethod
- Returns:
- the qualified method name
-
isRunnable
public boolean isRunnable()- Returns:
- whether the model passes this method's gate
-
getMethodClass
- Returns:
- one of the CLASS_ constants
-
getMetrics
- Returns:
- the comma-joined measure groups
-
getReason
- Returns:
- the refusal reason, empty when runnable
-
toString
-
toTable
The rows as an aligned text table, the form the CLI and a console caller want. The Reason column is last and unpadded, since it is the only one whose width is unbounded.- Parameters:
rows- the rows to render, may be empty- Returns:
- the table as a printable string, with a trailing newline
-