Package net.sf.tweety.arg.dung.semantics
Class Labeling
- java.lang.Object
-
- net.sf.tweety.commons.AbstractInterpretation<DungTheory,Argument>
-
- net.sf.tweety.arg.dung.semantics.AbstractArgumentationInterpretation
-
- net.sf.tweety.arg.dung.semantics.Labeling
-
- All Implemented Interfaces:
java.util.Map<Argument,ArgumentStatus>,Interpretation<DungTheory,Argument>
public class Labeling extends AbstractArgumentationInterpretation implements java.util.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Argument,ArgumentStatus>labelingThe actual labeling.
-
Constructor Summary
Constructors Constructor Description Labeling()Creates a new labeling.Labeling(DungTheory theory, Extension ext)Creates a new labeling from the given extension wrt.
-
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,ArgumentStatus>>entrySet()booleanequals(java.lang.Object obj)ArgumentStatusget(java.lang.Object arg0)ExtensiongetArgumentsOfStatus(ArgumentStatus status)Returns all arguments that have the given status in this interpretation.inthashCode()booleanisEmpty()java.util.Set<Argument>keySet()ArgumentStatusput(Argument arg0, ArgumentStatus arg1)voidputAll(java.util.Map<? extends Argument,? extends ArgumentStatus> arg0)ArgumentStatusremove(java.lang.Object arg0)intsize()java.lang.StringtoString()java.util.Collection<ArgumentStatus>values()-
Methods inherited from class net.sf.tweety.arg.dung.semantics.AbstractArgumentationInterpretation
isAcceptable, isAdmissable, isConflictFree, satisfies, satisfies
-
Methods inherited from class net.sf.tweety.commons.AbstractInterpretation
satisfies
-
-
-
-
Field Detail
-
labeling
private java.util.Map<Argument,ArgumentStatus> labeling
The actual labeling.
-
-
Constructor Detail
-
Labeling
public Labeling()
Creates a new labeling.
-
Labeling
public Labeling(DungTheory theory, Extension 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 Detail
-
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKeyin interfacejava.util.Map<Argument,ArgumentStatus>
-
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValuein interfacejava.util.Map<Argument,ArgumentStatus>
-
entrySet
public java.util.Set<java.util.Map.Entry<Argument,ArgumentStatus>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<Argument,ArgumentStatus>
-
get
public ArgumentStatus get(java.lang.Object arg0)
- Specified by:
getin interfacejava.util.Map<Argument,ArgumentStatus>
-
keySet
public java.util.Set<Argument> keySet()
- Specified by:
keySetin interfacejava.util.Map<Argument,ArgumentStatus>
-
put
public ArgumentStatus put(Argument arg0, ArgumentStatus arg1)
- Specified by:
putin interfacejava.util.Map<Argument,ArgumentStatus>
-
putAll
public void putAll(java.util.Map<? extends Argument,? extends ArgumentStatus> arg0)
- Specified by:
putAllin interfacejava.util.Map<Argument,ArgumentStatus>
-
values
public java.util.Collection<ArgumentStatus> values()
- Specified by:
valuesin interfacejava.util.Map<Argument,ArgumentStatus>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<Argument,ArgumentStatus>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<Argument,ArgumentStatus>
-
remove
public ArgumentStatus remove(java.lang.Object arg0)
- Specified by:
removein interfacejava.util.Map<Argument,ArgumentStatus>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<Argument,ArgumentStatus>
-
getArgumentsOfStatus
public Extension 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
public java.lang.String toString()
- Specified by:
toStringin classAbstractArgumentationInterpretation
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<Argument,ArgumentStatus>- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Map<Argument,ArgumentStatus>- Overrides:
equalsin classjava.lang.Object
-
-