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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(ClaimArgument o) boolean
addAll
(Collection<? extends ClaimArgument> c) void
clear()
int
boolean
boolean
containsAll
(Collection<?> o) getArgumentsOfStatus
(ArgumentStatus status) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) boolean
satisfies
(ClaimArgument formula) Checks whether this interpretation satisfies the given formula.boolean
satisfies
(ClaimBasedTheory beliefBase) Checks whether this interpretation satisfies the given knowledge base.int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
compareTo
in interfaceComparable<ClaimSet>
-
size
public int size()- Specified by:
size
in interfaceCollection<ClaimArgument>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<ClaimArgument>
-
contains
- Specified by:
contains
in interfaceCollection<ClaimArgument>
-
iterator
- Specified by:
iterator
in interfaceCollection<ClaimArgument>
- Specified by:
iterator
in interfaceIterable<ClaimArgument>
-
toArray
- Specified by:
toArray
in interfaceCollection<ClaimArgument>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArray
in interfaceCollection<ClaimArgument>
-
add
- Specified by:
add
in interfaceCollection<ClaimArgument>
-
remove
- Specified by:
remove
in interfaceCollection<ClaimArgument>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<ClaimArgument>
-
addAll
- Specified by:
addAll
in interfaceCollection<ClaimArgument>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<ClaimArgument>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<ClaimArgument>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<ClaimArgument>
-
toString
-
satisfies
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given formula.- Specified by:
satisfies
in 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:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfies
in 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.
-