public class AnswerSet extends net.sf.tweety.commons.InterpretationSet<ASPLiteral,Program,ASPRule>
| Constructor and Description |
|---|
AnswerSet()
Creates a new empty AnswerSet.
|
AnswerSet(AnswerSet other)
Copy-Constructor
|
AnswerSet(Collection<ASPLiteral> lits,
int level,
int weight)
Creates a new empty AnswerSet with the given level and weight.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Set<ASPLiteral> |
getLiteralsWithName(String name)
Returns all literals of a given name in the AnswerSet.
|
boolean |
satisfies(ASPRule formula) |
boolean |
satisfies(Program beliefBase) |
String |
toString() |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streampublic AnswerSet()
public AnswerSet(Collection<ASPLiteral> lits, int level, int weight)
level - weight - public AnswerSet(AnswerSet other)
level - weight - public Set<ASPLiteral> getLiteralsWithName(String name)
name - public String toString()
toString in class net.sf.tweety.commons.InterpretationSet<ASPLiteral,Program,ASPRule>public boolean satisfies(Program beliefBase) throws IllegalArgumentException
IllegalArgumentExceptionpublic boolean satisfies(ASPRule formula) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.