Class RuleSet<T extends Rule<?,?>>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
java.util.HashSet<T>
org.tweetyproject.commons.util.rules.RuleSet<T>
- Type Parameters:
T
- the specific rule class
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,Set<T>
- Direct Known Subclasses:
AspicArgumentationTheory
,NLPProgram
,Program
This class represents a set of rules and provides several
auxiliary methods for accessing such a set.
- Author:
- Matthias Thimm, Tim Janus
- See Also:
-
Constructor Summary
ConstructorDescriptionRuleSet()
Creates a new empty rule set.RuleSet
(Collection<? extends T> rules) Creates a new rule set with the given rules -
Method Summary
Modifier and TypeMethodDescriptionReturns all conclusions of all rules of this rule set.Returns all premises appearing in this rule set.Returns all rules this set with the given conclusionReturns the maximal subset of this rule set that is closed under "syntactic" neighbourhood relationship for the given formula.Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
RuleSet
public RuleSet()Creates a new empty rule set. -
RuleSet
Creates a new rule set with the given rules- Parameters:
rules
- a collection of rules.
-
-
Method Details
-
getRulesWithConclusion
-
getConclusions
-
getPremises
-
getSyntacticModule
Returns the maximal subset of this rule set that is closed under "syntactic" neighbourhood relationship for the given formula. A formula/rule has a "syntactic" neighbourhood relationship with a rule iff they share vocabulary elements.- Parameters:
f
- some formula- Returns:
- a rule set.
-