Class CmdLineImSolver

All Implemented Interfaces:
PostulateEvaluatable<PlFormula>, InconsistencyMeasure<BeliefSet<PlFormula,?>>

public class CmdLineImSolver extends BeliefSetInconsistencyMeasure<PlFormula>
Provides an interface to a command line based inconsistency measure analyzer
Author:
Sebastian Franke
  • Constructor Details

    • CmdLineImSolver

      public CmdLineImSolver(String binaryLocation)
      Creates a new solver based on the open-wbo executable given as a parameter.
      Parameters:
      binaryLocation - the path to the executable.
  • Method Details

    • getBinaryLocation

      public String getBinaryLocation()
      Returns:
      the path of the Prover9 binaries.
    • setBinaryLocation

      public void setBinaryLocation(String binaryLocation)
      Changes the path of the Prover9 binaries.
      Parameters:
      binaryLocation - the new path of the binary
    • isInstalled

      public boolean isInstalled()
      Returns:
      if the solver is installed
    • inconsistencyMeasure

      public Double inconsistencyMeasure(Collection<PlFormula> formulas)
      Description copied from class: BeliefSetInconsistencyMeasure
      This method measures the inconsistency of the given set of formulas.
      Specified by:
      inconsistencyMeasure in class BeliefSetInconsistencyMeasure<PlFormula>
      Parameters:
      formulas - a collection of formulas.
      Returns:
      a Double indicating the degree of inconsistency.