Class CmdLineImSolver
java.lang.Object
org.tweetyproject.logics.commons.analysis.BeliefSetInconsistencyMeasure<PlFormula>
org.tweetyproject.logics.pl.analysis.CmdLineImSolver
- All Implemented Interfaces:
PostulateEvaluatable<PlFormula>,InconsistencyMeasure<BeliefSet<PlFormula,?>>
Provides an interface to a command line based inconsistency measure analyzer
- Author:
- Sebastian Franke
-
Field Summary
Fields inherited from interface org.tweetyproject.logics.commons.analysis.InconsistencyMeasure
MEASURE_TOLERANCE -
Constructor Summary
ConstructorsConstructorDescriptionCmdLineImSolver(String binaryLocation) Creates a new solver based on the open-wbo executable given as a parameter. -
Method Summary
Modifier and TypeMethodDescriptioninconsistencyMeasure(Collection<PlFormula> formulas) This method measures the inconsistency of the given set of formulas.booleanvoidsetBinaryLocation(String binaryLocation) Changes the path of the Prover9 binaries.Methods inherited from class org.tweetyproject.logics.commons.analysis.BeliefSetInconsistencyMeasure
inconsistencyMeasure
-
Constructor Details
-
CmdLineImSolver
Creates a new solver based on the open-wbo executable given as a parameter.- Parameters:
binaryLocation- the path to the executable.
-
-
Method Details
-
getBinaryLocation
- Returns:
- the path of the Prover9 binaries.
-
setBinaryLocation
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
Description copied from class:BeliefSetInconsistencyMeasureThis method measures the inconsistency of the given set of formulas.- Specified by:
inconsistencyMeasurein classBeliefSetInconsistencyMeasure<PlFormula>- Parameters:
formulas- a collection of formulas.- Returns:
- a Double indicating the degree of inconsistency.
-