public class RuleSet<T extends Rule<?,?>> extends HashSet<T>
| Constructor and Description |
|---|
RuleSet()
Creates a new empty rule set.
|
RuleSet(Collection<? extends T> rules)
Creates a new rule set with the given rules
|
| Modifier and Type | Method and Description |
|---|---|
Set<Formula> |
getConclusions()
Returns all conclusions of all rules of this rule set.
|
Set<Formula> |
getPremises()
Returns all premises appearing in this rule set.
|
Set<T> |
getRulesWithConclusion(Formula f)
Returns all rules this set with the given conclusion
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic RuleSet()
public RuleSet(Collection<? extends T> rules)
rules - a collection of rules.public Set<T> getRulesWithConclusion(Formula f)
f - a formulapublic Set<Formula> getConclusions()
Copyright © 2018. All rights reserved.