Class StratifiedLabeling
- java.lang.Object
-
- org.tweetyproject.commons.AbstractInterpretation<DungTheory,Argument>
-
- org.tweetyproject.arg.dung.semantics.StratifiedLabeling
-
- All Implemented Interfaces:
java.util.Map<Argument,java.lang.Integer>,Interpretation<DungTheory,Argument>
public class StratifiedLabeling extends AbstractInterpretation<DungTheory,Argument> implements java.util.Map<Argument,java.lang.Integer>
This class implements stratified labelings as in [Thimm, Kern-Isberner, 2013].- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description StratifiedLabeling()Creates a new empty stratified labeling.
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object arg0)booleancontainsValue(java.lang.Object arg0)java.util.Set<java.util.Map.Entry<Argument,java.lang.Integer>>entrySet()java.lang.Integerget(java.lang.Object arg0)booleanisEmpty()java.util.Set<Argument>keySet()java.lang.Integerput(Argument arg0, java.lang.Integer arg1)voidputAll(java.util.Map<? extends Argument,? extends java.lang.Integer> arg0)java.lang.Integerremove(java.lang.Object arg0)booleansatisfies(Argument formula)Checks whether this interpretation satisfies the given formula.booleansatisfies(DungTheory beliefBase)Checks whether this interpretation satisfies the given knowledge base.intsize()java.lang.StringtoString()java.util.Collection<java.lang.Integer>values()-
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<Argument,java.lang.Integer>
-
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKeyin interfacejava.util.Map<Argument,java.lang.Integer>
-
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValuein interfacejava.util.Map<Argument,java.lang.Integer>
-
entrySet
public java.util.Set<java.util.Map.Entry<Argument,java.lang.Integer>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<Argument,java.lang.Integer>
-
get
public java.lang.Integer get(java.lang.Object arg0)
- Specified by:
getin interfacejava.util.Map<Argument,java.lang.Integer>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<Argument,java.lang.Integer>
-
keySet
public java.util.Set<Argument> keySet()
- Specified by:
keySetin interfacejava.util.Map<Argument,java.lang.Integer>
-
put
public java.lang.Integer put(Argument arg0, java.lang.Integer arg1)
- Specified by:
putin interfacejava.util.Map<Argument,java.lang.Integer>
-
putAll
public void putAll(java.util.Map<? extends Argument,? extends java.lang.Integer> arg0)
- Specified by:
putAllin interfacejava.util.Map<Argument,java.lang.Integer>
-
remove
public java.lang.Integer remove(java.lang.Object arg0)
- Specified by:
removein interfacejava.util.Map<Argument,java.lang.Integer>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<Argument,java.lang.Integer>
-
values
public java.util.Collection<java.lang.Integer> values()
- Specified by:
valuesin interfacejava.util.Map<Argument,java.lang.Integer>
-
satisfies
public boolean satisfies(Argument formula) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException- if the formula does not correspond to the expected language.
-
satisfies
public boolean satisfies(DungTheory beliefBase) throws java.lang.IllegalArgumentException
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:
java.lang.IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-