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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object arg0) boolean
containsValue
(Object arg0) entrySet()
boolean
isEmpty()
keySet()
void
boolean
Checks whether this interpretation satisfies the given formula.boolean
satisfies
(DungTheory beliefBase) Checks whether this interpretation satisfies the given knowledge base.int
size()
toString()
values()
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<Argument,
Integer>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Argument,
Integer>
-
entrySet
-
get
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-
satisfies
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given formula.- Specified by:
satisfies
in 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:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfies
in 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
-