Class SolverCandidate

java.lang.Object
jline.solvers.auto.SolverCandidate

public final class SolverCandidate extends Object
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 Details

  • Constructor Details

    • SolverCandidate

      public SolverCandidate(String solver, String method, boolean runnable, String methodClass, String metrics, String reason)
      Parameters:
      solver - the method family
      method - the qualified method name
      runnable - whether the model passes this method's gate
      methodClass - one of the CLASS_ constants
      metrics - comma-joined measure groups
      reason - the refusal reason, empty when runnable
  • Method Details

    • getSolver

      public String getSolver()
      Returns:
      the method family
    • getMethod

      public String getMethod()
      Returns:
      the qualified method name
    • isRunnable

      public boolean isRunnable()
      Returns:
      whether the model passes this method's gate
    • getMethodClass

      public String getMethodClass()
      Returns:
      one of the CLASS_ constants
    • getMetrics

      public String getMetrics()
      Returns:
      the comma-joined measure groups
    • getReason

      public String getReason()
      Returns:
      the refusal reason, empty when runnable
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toTable

      public static String toTable(List<SolverCandidate> rows)
      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