public class RuleSet extends RuleCollection implements java.util.Set<Rule>
Rules.| Constructor and Description |
|---|
RuleSet(@NotNull Head defaultPrediction)
Creates an empty rule set.
|
RuleSet(@NotNull Head defaultPrediction,
@NotNull java.lang.Iterable<? extends Rule> rules)
Creates a new rule set that contains several rules.
|
RuleSet(@NotNull Head defaultPrediction,
Rule... rules)
Creates a rule set that contains several rules.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Rule rule) |
boolean |
addAll(@NotNull java.util.Collection<? extends Rule> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(@NotNull java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isConjunctive()
Returns, whether the proposition is conjunctive, or not.
|
boolean |
isEmpty() |
@NotNull java.util.Iterator<Rule> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(@NotNull java.util.Collection<?> c) |
boolean |
retainAll(@NotNull java.util.Collection<?> c) |
int |
size() |
@NotNull java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
getDefaultPredictionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllMatches, getFirstMatch, isDisjunctive, testpublic RuleSet(@NotNull
@NotNull Head defaultPrediction)
defaultPrediction - The default prediction that should be made if no rule covers an
examplepublic RuleSet(@NotNull
@NotNull Head defaultPrediction,
@NotNull
Rule... rules)
defaultPrediction - The default prediction that should be made if no rule covers an
examplerules - An array that contains the rules that should be contained by the
rule setpublic RuleSet(@NotNull
@NotNull Head defaultPrediction,
@NotNull
@NotNull java.lang.Iterable<? extends Rule> rules)
defaultPrediction - The default prediction that should be made if no rule covers an
examplerules - An Iterable that allows to iterate the rules that should be
contained by the rule setpublic int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
@NotNull public @NotNull java.util.Iterator<Rule> iterator()
@NotNull public @NotNull java.lang.Object[] toArray()
@NotNull
public <T> T[] toArray(@NotNull
T[] a)
public boolean add(Rule rule)
public boolean remove(java.lang.Object o)
public boolean containsAll(@NotNull
@NotNull java.util.Collection<?> c)
public boolean addAll(@NotNull
@NotNull java.util.Collection<? extends Rule> c)
public boolean retainAll(@NotNull
@NotNull java.util.Collection<?> c)
public boolean removeAll(@NotNull
@NotNull java.util.Collection<?> c)
public void clear()
public boolean isConjunctive()
PropositionisConjunctive in interface Proposition<Rule>public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<Rule>hashCode in interface java.util.Set<Rule>hashCode in class RuleCollectionpublic boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<Rule>equals in interface java.util.Set<Rule>equals in class RuleCollection