Interface RuleFactory
- All Known Implementing Classes:
DefaultRuleFactory
public interface RuleFactory
Factory for creating rules from atoms, atom sets, or iterators.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates an empty rule.Creates a rule from arrays of body and head atoms.Creates a rule from single body and head atoms.create(InMemoryAtomSet body, InMemoryAtomSet head) Creates a rule from in-memory body and head atom sets.Creates a copy of the provided rule.Creates a rule from iterators over body and head atoms.Creates a labeled rule from single body and head atoms.create(String label, InMemoryAtomSet body, InMemoryAtomSet head) Creates a labeled rule from in-memory body and head atom sets.create(String label, CloseableIteratorWithoutException<Atom> body, CloseableIteratorWithoutException<Atom> head) Creates a labeled rule from iterators over body and head atoms.
-
Method Details
-
create
-
create
-
create
Rule create(CloseableIteratorWithoutException<Atom> body, CloseableIteratorWithoutException<Atom> head) Creates a rule from iterators over body and head atoms.- Parameters:
body- the body atom iteratorhead- the head atom iterator- Returns:
- the created rule
-
create
Rule create(String label, CloseableIteratorWithoutException<Atom> body, CloseableIteratorWithoutException<Atom> head) Creates a labeled rule from iterators over body and head atoms.- Parameters:
label- the rule labelbody- the body atom iteratorhead- the head atom iterator- Returns:
- the created rule
-
create
Creates a rule from in-memory body and head atom sets.- Parameters:
body- the rule bodyhead- the rule head- Returns:
- the created rule
-
create
Creates a labeled rule from in-memory body and head atom sets.- Parameters:
label- the rule labelbody- the rule bodyhead- the rule head- Returns:
- the created rule
-
create
-
create
-
create
-