Class Labeling
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation
org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
org.tweetyproject.arg.dung.semantics.Labeling
- All Implemented Interfaces:
Map<Argument,
,ArgumentStatus> Interpretation
- Direct Known Subclasses:
Input
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<Argument> theory, Extension<? extends ArgumentationFramework<Argument>> 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
Extension
<? extends ArgumentationFramework<Argument>> 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
public Labeling(ArgumentationFramework<Argument> theory, Extension<? extends ArgumentationFramework<Argument>> ext) 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
-
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
public Extension<? extends ArgumentationFramework<Argument>> getArgumentsOfStatus(ArgumentStatus status) 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
-
equals
-