Class StratifiedLabeling
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<DungTheory, Argument>
org.tweetyproject.arg.dung.semantics.StratifiedLabeling
- All Implemented Interfaces:
Map<Argument,,Integer> Interpretation<DungTheory, Argument>
public class StratifiedLabeling
extends AbstractInterpretation<DungTheory, Argument>
implements Map<Argument,Integer>
This class implements stratified labelings as in [Thimm, Kern-Isberner, 2013].
- Author:
- Matthias Thimm
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object arg0) booleancontainsValue(Object arg0) entrySet()booleanisEmpty()keySet()voidbooleanChecks whether this interpretation satisfies the given formula.booleansatisfies(DungTheory beliefBase) Checks whether this interpretation satisfies the given knowledge base.intsize()toString()values()Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
StratifiedLabeling
public StratifiedLabeling()Creates a new empty stratified labeling.
-
-
Method Details
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<Argument,Integer>
-
containsValue
- Specified by:
containsValuein interfaceMap<Argument,Integer>
-
entrySet
-
get
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Specified by:
satisfiesin interfaceInterpretation<DungTheory, Argument>- Parameters:
formula- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfiesin interfaceInterpretation<DungTheory, Argument>- Parameters:
beliefBase- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
toString
-