Interface Interpretation
- 
 public interface InterpretationThis class represents a three-valued interpretation of an Abstract Dialectical Framework (ADF).- Author:
- Mathias Hofer
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classInterpretation.Builder
 - 
Method SummaryModifier and Type Method Description java.util.Set<Argument>arguments()static Interpretation.Builderbuilder(java.util.Collection<Argument> arguments)static Interpretation.Builderbuilder(AbstractDialecticalFramework adf)default booleancontainsAll(java.util.Collection<Argument> arguments)default booleandecided(Argument arg)static Interpretationempty(AbstractDialecticalFramework adf)static booleanequalsTwoValued(Interpretation i1, Interpretation i2)Checks if, and only if, the two valued assignments for both of the interpretations are the same, ignores differences in the undecided assignments.static Interpretationextend(Interpretation toExtend, Argument argument, boolean value)Extends the given interpretation by deciding a currently undecided argument.static InterpretationfromMap(java.util.Map<Argument,java.lang.Boolean> assignment)static InterpretationfromSet(java.util.Set<Argument> satisfied, AbstractDialecticalFramework adf)static InterpretationfromSets(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, java.util.Set<Argument> undecided)static InterpretationfromSets(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, AbstractDialecticalFramework adf)static InterpretationfromWitness(java.util.Set<Atom> witness, PropositionalMapping encodingContext, AbstractDialecticalFramework adf)Constructs a three-valued ADF interpretation from a witness of a propositional sat encoding.default booleanisStrictSubsetOf(Interpretation superset)default booleanisStrictSupersetOf(Interpretation subset)default booleanisSubsetOf(Interpretation superset)default booleanisSupersetOf(Interpretation subset)default intnumDecided()Returns the number of decided arguments, i.e.static Interpretationpartial(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, AbstractDialecticalFramework adf)static java.util.Iterator<Interpretation>partials(java.util.List<Argument> arguments, AbstractDialecticalFramework adf)Goes through all possible partial interpretations respecting the order of the given list of arguments.static Interpretationrestrict(Interpretation interpretation, java.util.Collection<Argument> restriction)Creates a new interpretation with the same assignments as in the given arguments, but only uses the arguments contained inrestriction.static InterpretationrestrictUndecided(Interpretation interpretation, java.util.Collection<Argument> restriction)java.util.Set<Argument>satisfied()booleansatisfied(Argument arg)static InterpretationsingleValued(Argument argument, boolean value, AbstractDialecticalFramework adf)Returns an interpretation relative toadfwith a single truth value decided.default intsize()Returns the number of arguments in this interpretation.static java.util.Map<Argument,java.lang.Boolean>toMap(Interpretation interpretation)java.util.Set<Argument>undecided()booleanundecided(Argument arg)java.util.Set<Argument>unsatisfied()booleanunsatisfied(Argument arg)
 
- 
- 
- 
Method Detail- 
emptystatic Interpretation empty(AbstractDialecticalFramework adf) 
 - 
fromMapstatic Interpretation fromMap(java.util.Map<Argument,java.lang.Boolean> assignment) 
 - 
fromSetstatic Interpretation fromSet(java.util.Set<Argument> satisfied, AbstractDialecticalFramework adf) 
 - 
fromSetsstatic Interpretation fromSets(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, AbstractDialecticalFramework adf) 
 - 
extendstatic Interpretation extend(Interpretation toExtend, Argument argument, boolean value) Extends the given interpretation by deciding a currently undecided argument. If the argument is not undecided in the given interpretation, an exception is thrown.- Parameters:
- toExtend- toExtend
- argument- argument
- value- value
- Returns:
- return value
 
 - 
fromSetsstatic Interpretation fromSets(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, java.util.Set<Argument> undecided) 
 - 
fromWitnessstatic Interpretation fromWitness(java.util.Set<Atom> witness, PropositionalMapping encodingContext, AbstractDialecticalFramework adf) Constructs a three-valued ADF interpretation from a witness of a propositional sat encoding.- Parameters:
- witness- the propositional sat witness
- encodingContext- the mapping of the propositional variables and the adf
- adf- the ADF for which we construct the interpretation
- Returns:
- an ADF interpretation
- Throws:
- java.lang.NullPointerException- if any of the arguments are null
 
 - 
partialstatic Interpretation partial(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, AbstractDialecticalFramework adf) 
 - 
toMapstatic java.util.Map<Argument,java.lang.Boolean> toMap(Interpretation interpretation) 
 - 
restrictstatic Interpretation restrict(Interpretation interpretation, java.util.Collection<Argument> restriction) Creates a new interpretation with the same assignments as in the given arguments, but only uses the arguments contained inrestriction.- Parameters:
- interpretation- the interpretation to restrict
- restriction- the arguments that act as a restriction/filter
- Returns:
- an interpretation which only contains arguments in restriction
 
 - 
restrictUndecidedstatic Interpretation restrictUndecided(Interpretation interpretation, java.util.Collection<Argument> restriction) 
 - 
equalsTwoValuedstatic boolean equalsTwoValued(Interpretation i1, Interpretation i2) Checks if, and only if, the two valued assignments for both of the interpretations are the same, ignores differences in the undecided assignments.- Parameters:
- i1- an interpretation
- i2- an interpretation to be compared with- i1for the two-valued assignments
- Returns:
- true iff the values of the decided arguments of both interpretations are the same
 
 - 
singleValuedstatic Interpretation singleValued(Argument argument, boolean value, AbstractDialecticalFramework adf) Returns an interpretation relative toadfwith a single truth value decided.This may be useful for some decision-level based algorithms. - Parameters:
- argument- the argument to decide
- value- the value of the argument
- adf- the contextual ADF
- Returns:
- an interpretation with a single argument decided
 
 - 
partialsstatic java.util.Iterator<Interpretation> partials(java.util.List<Argument> arguments, AbstractDialecticalFramework adf) Goes through all possible partial interpretations respecting the order of the given list of arguments.This returns exponentially many in the size of argumentsinterpretations.- Parameters:
- arguments- the arguments for which we compute the interpretations
- adf- the contextual ADF
- Returns:
- the partial interpretations
 
 - 
builderstatic Interpretation.Builder builder(AbstractDialecticalFramework adf) 
 - 
builderstatic Interpretation.Builder builder(java.util.Collection<Argument> arguments) 
 - 
satisfiedboolean satisfied(Argument arg) 
 - 
unsatisfiedboolean unsatisfied(Argument arg) 
 - 
undecidedboolean undecided(Argument arg) 
 - 
satisfiedjava.util.Set<Argument> satisfied() 
 - 
unsatisfiedjava.util.Set<Argument> unsatisfied() 
 - 
undecidedjava.util.Set<Argument> undecided() 
 - 
argumentsjava.util.Set<Argument> arguments() Returns the union ofsatisfied(),unsatisfied()andundecided(). Must not return additional arguments.- Returns:
- all the assigned arguments
 
 - 
sizedefault int size() Returns the number of arguments in this interpretation.- Returns:
- the number of arguments
 
 - 
containsAlldefault boolean containsAll(java.util.Collection<Argument> arguments) 
 - 
decideddefault boolean decided(Argument arg) - Parameters:
- arg- some argument
- Returns:
- true iff the argument is either satisfied or unsatisfied
 
 - 
numDecideddefault int numDecided() Returns the number of decided arguments, i.e. satisfied or unsatisfied, in this interpretation.- Returns:
- the number of decided arguments
 
 - 
isSubsetOfdefault boolean isSubsetOf(Interpretation superset) 
 - 
isStrictSubsetOfdefault boolean isStrictSubsetOf(Interpretation superset) 
 - 
isSupersetOfdefault boolean isSupersetOf(Interpretation subset) 
 - 
isStrictSupersetOfdefault boolean isStrictSupersetOf(Interpretation subset) 
 
- 
 
-