Class SatEncodingContext
- java.lang.Object
-
- net.sf.tweety.arg.adf.reasoner.encodings.SatEncodingContext
-
public class SatEncodingContext extends java.lang.ObjectStores the shared context which is needed to interconnect the sat encodings, e.g. shared propositional variables.- Author:
- Mathias Hofer
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractDialecticalFrameworkadfprivate java.util.Map<Argument,Proposition>falsesprivate Cache<Link,Proposition>linksprivate java.util.Map<Argument,Proposition>trues
-
Constructor Summary
Constructors Constructor Description SatEncodingContext(AbstractDialecticalFramework adf)
-
Method Summary
Modifier and Type Method Description AbstractDialecticalFrameworkgetAbstractDialecticalFramework()PropositiongetFalseRepresentation(Argument argument)PropositiongetLinkRepresentation(Link link)PropositiongetLinkRepresentation(Argument from, Argument to)PropositiongetTrueRepresentation(Argument argument)InterpretationinterpretationFromWitness(Interpretation<PlBeliefSet,PlFormula> witness)Constructs an ADF interpretation from the given SAT witness.voidsetAdf(AbstractDialecticalFramework adf)
-
-
-
Field Detail
-
falses
private java.util.Map<Argument,Proposition> falses
-
trues
private java.util.Map<Argument,Proposition> trues
-
links
private Cache<Link,Proposition> links
-
adf
private AbstractDialecticalFramework adf
-
-
Constructor Detail
-
SatEncodingContext
public SatEncodingContext(AbstractDialecticalFramework adf)
- Parameters:
adf-
-
-
Method Detail
-
setAdf
public void setAdf(AbstractDialecticalFramework adf)
- Parameters:
adf- the adf to set
-
getFalseRepresentation
public Proposition getFalseRepresentation(Argument argument)
-
getTrueRepresentation
public Proposition getTrueRepresentation(Argument argument)
-
getLinkRepresentation
public Proposition getLinkRepresentation(Argument from, Argument to)
-
getLinkRepresentation
public Proposition getLinkRepresentation(Link link)
-
getAbstractDialecticalFramework
public AbstractDialecticalFramework getAbstractDialecticalFramework()
- Returns:
- the adf
-
interpretationFromWitness
public Interpretation interpretationFromWitness(Interpretation<PlBeliefSet,PlFormula> witness)
Constructs an ADF interpretation from the given SAT witness.- Parameters:
witness- the SAT witness- Returns:
- the constructed ADF interpretation
-
-