public class SpassFolReasoner extends FolReasoner
defaultReasoner| Constructor and Description |
|---|
SpassFolReasoner(String binaryLocation)
Constructs a new instance pointing to a specific SPASS
|
SpassFolReasoner(String binaryLocation,
net.sf.tweety.commons.util.Shell bash)
Constructs a new instance pointing to a specific SPASS Prover.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equivalent(FolBeliefSet kb,
FolFormula a,
FolFormula b)
This method determines whether two formulas are
equivalent wrt.
|
Boolean |
query(FolBeliefSet kb,
FolFormula query) |
String |
queryProof(FolBeliefSet kb,
net.sf.tweety.commons.Formula query)
Determines the answer wrt.
|
void |
setCmdOptions(String s)
Sets the command line options that will be used by SPASS when executing the query.
|
getDefaultReasoner, setDefaultReasonerpublic SpassFolReasoner(String binaryLocation, net.sf.tweety.commons.util.Shell bash)
binaryLocation - of the SPASS executable on the hard drivebash - shell to run commandspublic SpassFolReasoner(String binaryLocation)
binaryLocation - of the SPASS executable on the hard drivepublic void setCmdOptions(String s)
s - a string containing the command line argumentspublic Boolean query(FolBeliefSet kb, FolFormula query)
query in interface net.sf.tweety.commons.QualitativeReasoner<FolBeliefSet,FolFormula>query in interface net.sf.tweety.commons.Reasoner<Boolean,FolBeliefSet,FolFormula>query in class FolReasonerpublic String queryProof(FolBeliefSet kb, net.sf.tweety.commons.Formula query)
net.sf.tweety.logics.SpassFolReasoner.reasoner.SPASS#query(Formula)
if only a yes/no result is needed.query - a formulapublic boolean equivalent(FolBeliefSet kb, FolFormula a, FolFormula b)
FolReasonerequivalent in class FolReasonerkb - the knowledge basea - the first formula.b - the second formula.Copyright © 2019. All rights reserved.