Class ClaimSet
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<ClaimBasedTheory,ClaimArgument>
org.tweetyproject.arg.dung.semantics.ClaimSet
- All Implemented Interfaces:
Comparable<ClaimSet>,Iterable<ClaimArgument>,Collection<ClaimArgument>,Interpretation<ClaimBasedTheory,ClaimArgument>
public class ClaimSet
extends AbstractInterpretation<ClaimBasedTheory,ClaimArgument>
implements Collection<ClaimArgument>, Comparable<ClaimSet>
a set of claims
- Author:
- Sebastian Franke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ClaimArgument o) booleanaddAll(Collection<? extends ClaimArgument> c) voidclear()intbooleanbooleancontainsAll(Collection<?> o) getArgumentsOfStatus(ArgumentStatus status) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) booleansatisfies(ClaimArgument formula) Checks whether this interpretation satisfies the given formula.booleansatisfies(ClaimBasedTheory beliefBase) Checks whether this interpretation satisfies the given knowledge base.intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfiesMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ClaimSet
public ClaimSet()constructor -
ClaimSet
constructor- Parameters:
c- a claimset
-
ClaimSet
constructor- Parameters:
c- claimset
-
-
Method Details
-
getClaims
- Returns:
- the claims
-
compareTo
- Specified by:
compareToin interfaceComparable<ClaimSet>
-
size
public int size()- Specified by:
sizein interfaceCollection<ClaimArgument>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<ClaimArgument>
-
contains
- Specified by:
containsin interfaceCollection<ClaimArgument>
-
iterator
- Specified by:
iteratorin interfaceCollection<ClaimArgument>- Specified by:
iteratorin interfaceIterable<ClaimArgument>
-
toArray
- Specified by:
toArrayin interfaceCollection<ClaimArgument>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<ClaimArgument>
-
add
- Specified by:
addin interfaceCollection<ClaimArgument>
-
remove
- Specified by:
removein interfaceCollection<ClaimArgument>
-
containsAll
- Specified by:
containsAllin interfaceCollection<ClaimArgument>
-
addAll
- Specified by:
addAllin interfaceCollection<ClaimArgument>
-
removeAll
- Specified by:
removeAllin interfaceCollection<ClaimArgument>
-
retainAll
- Specified by:
retainAllin interfaceCollection<ClaimArgument>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<ClaimArgument>
-
toString
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given formula.- Specified by:
satisfiesin interfaceInterpretation<ClaimBasedTheory,ClaimArgument> - Parameters:
formula- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException- if the formula does not correspond to the expected language.
-
getArgumentsOfStatus
- Parameters:
status- like IN or OUT- Returns:
- the claimset with the given status
-
satisfies
Description copied from interface:InterpretationChecks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfiesin interfaceInterpretation<ClaimBasedTheory,ClaimArgument> - Parameters:
beliefBase- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-