Class SetInterpretation
- java.lang.Object
-
- net.sf.tweety.arg.adf.semantics.interpretation.SetInterpretation
-
- All Implemented Interfaces:
Interpretation
public final class SetInterpretation extends java.lang.Object implements Interpretation
This implementation is backed by three sets which allowssatisfied(Argument),unsatisfied(Argument)andundecided(Argument)to return in constant time.- Author:
- Mathias Hofer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.tweety.arg.adf.semantics.interpretation.Interpretation
Interpretation.Builder
-
-
Constructor Summary
Constructors Constructor Description SetInterpretation(java.util.Set<Argument> satisfied, java.util.Set<Argument> unsatisfied, java.util.Set<Argument> undecided)
-
Method Summary
Modifier and Type Method Description java.util.Set<Argument>arguments()Returns the union ofInterpretation.satisfied(),Interpretation.unsatisfied()andInterpretation.undecided().booleanequals(java.lang.Object obj)inthashCode()java.util.Set<Argument>satisfied()booleansatisfied(Argument arg)java.lang.StringtoString()java.util.Set<Argument>undecided()booleanundecided(Argument arg)java.util.Set<Argument>unsatisfied()booleanunsatisfied(Argument arg)-
Methods inherited from interface net.sf.tweety.arg.adf.semantics.interpretation.Interpretation
containsAll, isStrictSubsetOf, isStrictSupersetOf, isSubsetOf, isSupersetOf, numDecided, size
-
-
-
-
Method Detail
-
satisfied
public boolean satisfied(Argument arg)
- Specified by:
satisfiedin interfaceInterpretation
-
unsatisfied
public boolean unsatisfied(Argument arg)
- Specified by:
unsatisfiedin interfaceInterpretation
-
undecided
public boolean undecided(Argument arg)
- Specified by:
undecidedin interfaceInterpretation
-
satisfied
public java.util.Set<Argument> satisfied()
- Specified by:
satisfiedin interfaceInterpretation
-
arguments
public java.util.Set<Argument> arguments()
Description copied from interface:InterpretationReturns the union ofInterpretation.satisfied(),Interpretation.unsatisfied()andInterpretation.undecided(). Must not return additional arguments.- Specified by:
argumentsin interfaceInterpretation- Returns:
- all the assigned arguments
-
unsatisfied
public java.util.Set<Argument> unsatisfied()
- Specified by:
unsatisfiedin interfaceInterpretation
-
undecided
public java.util.Set<Argument> undecided()
- Specified by:
undecidedin interfaceInterpretation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-