Class Labeling
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<ArgumentationFramework,Argument>
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
org.tweetyproject.arg.dung.semantics.Labeling
- All Implemented Interfaces:
Map<Argument,ArgumentStatus>
,Interpretation<ArgumentationFramework,Argument>
public class Labeling
extends AbstractArgumentationInterpretation
implements Map<Argument,ArgumentStatus>
This class models a labeling of an abstract argumentation framework, i.e.
a function mapping arguments to values "in", "out", "undec".
- Author:
- Matthias Thimm
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLabeling()
Creates a new labeling.Labeling(ArgumentationFramework theory, Extension ext)
Creates a new labeling from the given extension wrt. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey(Object arg0)
boolean
containsValue(Object arg0)
entrySet()
boolean
getArgumentsOfStatus(ArgumentStatus status)
Returns all arguments that have the given status in this interpretation.int
hashCode()
boolean
isEmpty()
keySet()
put(Argument arg0, ArgumentStatus arg1)
void
putAll(Map<? extends Argument,? extends ArgumentStatus> arg0)
int
size()
toString()
values()
Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfies
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Labeling
public Labeling()Creates a new labeling. -
Labeling
Creates a new labeling from the given extension wrt. the given theory (this only gives a valid labeling wrt. some semantics if the semantics is admissibility-based).- Parameters:
theory
- some Dung theory.ext
- an extension
-
-
Method Details
-
containsKey
- Specified by:
containsKey
in interfaceMap<Argument,ArgumentStatus>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Argument,ArgumentStatus>
-
entrySet
- Specified by:
entrySet
in interfaceMap<Argument,ArgumentStatus>
-
get
- Specified by:
get
in interfaceMap<Argument,ArgumentStatus>
-
keySet
- Specified by:
keySet
in interfaceMap<Argument,ArgumentStatus>
-
put
- Specified by:
put
in interfaceMap<Argument,ArgumentStatus>
-
putAll
- Specified by:
putAll
in interfaceMap<Argument,ArgumentStatus>
-
values
- Specified by:
values
in interfaceMap<Argument,ArgumentStatus>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<Argument,ArgumentStatus>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<Argument,ArgumentStatus>
-
remove
- Specified by:
remove
in interfaceMap<Argument,ArgumentStatus>
-
size
public int size()- Specified by:
size
in interfaceMap<Argument,ArgumentStatus>
-
getArgumentsOfStatus
Description copied from class:AbstractArgumentationInterpretation
Returns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatus
in classAbstractArgumentationInterpretation
- Parameters:
status
- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
toString
- Specified by:
toString
in classAbstractArgumentationInterpretation
-
hashCode
public int hashCode() -
equals
-