public class DefaultRule extends AbstractRule
| Constructor and Description |
|---|
DefaultRule() |
DefaultRule(CloseableIteratorWithoutException<Atom> body,
CloseableIteratorWithoutException<Atom> head) |
DefaultRule(InMemoryAtomSet body,
InMemoryAtomSet head) |
DefaultRule(Rule rule) |
DefaultRule(String label,
CloseableIteratorWithoutException<Atom> body,
CloseableIteratorWithoutException<Atom> head) |
DefaultRule(String label,
InMemoryAtomSet body,
InMemoryAtomSet head) |
| Modifier and Type | Method and Description |
|---|---|
InMemoryAtomSet |
getBody()
Get the body (the hypothesis) of this rule.
|
Set<Constant> |
getConstants()
Get all constants of this rule.
|
Set<Variable> |
getExistentials()
Compute and return the set of existential variables of this rule.
|
Set<Variable> |
getFrontier()
Compute and return the set of frontier variables of this rule.
|
InMemoryAtomSet |
getHead()
Get the head (the conclusion) of this rule.
|
String |
getLabel()
Get the label (the name) of this rule.
|
Set<Literal> |
getLiterals()
Get all literals of this rule.
|
Set<Term> |
getTerms()
Get all terms of this rule.
|
Set<Term> |
getTerms(Term.Type type)
Deprecated.
|
Set<Variable> |
getVariables()
Get all variables of this rule.
|
void |
setBody(InMemoryAtomSet b) |
void |
setHead(InMemoryAtomSet h) |
void |
setLabel(String label)
Set the label (the name) of this rule.
|
public DefaultRule()
public DefaultRule(CloseableIteratorWithoutException<Atom> body, CloseableIteratorWithoutException<Atom> head)
public DefaultRule(String label, CloseableIteratorWithoutException<Atom> body, CloseableIteratorWithoutException<Atom> head)
public DefaultRule(InMemoryAtomSet body, InMemoryAtomSet head)
public DefaultRule(String label, InMemoryAtomSet body, InMemoryAtomSet head)
public DefaultRule(Rule rule)
public InMemoryAtomSet getBody()
Rulepublic void setBody(InMemoryAtomSet b)
public String getLabel()
Rulepublic void setLabel(String label)
Rulepublic InMemoryAtomSet getHead()
Rulepublic void setHead(InMemoryAtomSet h)
public Set<Term> getTerms()
Rulepublic Set<Variable> getVariables()
Rulepublic Set<Constant> getConstants()
Rulepublic Set<Literal> getLiterals()
Rule@Deprecated public Set<Term> getTerms(Term.Type type)
Rulepublic Set<Variable> getFrontier()
RuleCopyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.