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
ConstructorsConstructorDescriptionLabeling()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 TypeMethodDescriptionvoidclear()booleancontainsKey(Object arg0) booleancontainsValue(Object arg0) entrySet()booleanExtension<? extends ArgumentationFramework<Argument>> getArgumentsOfStatus(ArgumentStatus status) Returns all arguments that have the given status in this interpretation.inthashCode()booleanisEmpty()keySet()put(Argument arg0, ArgumentStatus arg1) voidputAll(Map<? extends Argument, ? extends ArgumentStatus> arg0) intsize()toString()values()Methods inherited from class org.tweetyproject.arg.dung.semantics.AbstractArgumentationInterpretation
satisfies, satisfiesMethods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods 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:
containsKeyin interfaceMap<Argument,ArgumentStatus>
-
containsValue
- Specified by:
containsValuein interfaceMap<Argument,ArgumentStatus>
-
entrySet
- Specified by:
entrySetin interfaceMap<Argument,ArgumentStatus>
-
get
- Specified by:
getin interfaceMap<Argument,ArgumentStatus>
-
keySet
-
put
- Specified by:
putin interfaceMap<Argument,ArgumentStatus>
-
putAll
- Specified by:
putAllin interfaceMap<Argument,ArgumentStatus>
-
values
- Specified by:
valuesin interfaceMap<Argument,ArgumentStatus>
-
clear
public void clear()- Specified by:
clearin interfaceMap<Argument,ArgumentStatus>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<Argument,ArgumentStatus>
-
remove
- Specified by:
removein interfaceMap<Argument,ArgumentStatus>
-
size
public int size()- Specified by:
sizein interfaceMap<Argument,ArgumentStatus>
-
getArgumentsOfStatus
public Extension<? extends ArgumentationFramework<Argument>> getArgumentsOfStatus(ArgumentStatus status) Description copied from class:AbstractArgumentationInterpretationReturns all arguments that have the given status in this interpretation.- Specified by:
getArgumentsOfStatusin classAbstractArgumentationInterpretation- Parameters:
status- the status of the arguments to be returned.- Returns:
- the set of arguments with the given status.
-
toString
- Specified by:
toStringin classAbstractArgumentationInterpretation
-
hashCode
-
equals
-