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()
Rule
public void setBody(InMemoryAtomSet b)
public String getLabel()
Rule
public void setLabel(String label)
Rule
public InMemoryAtomSet getHead()
Rule
public void setHead(InMemoryAtomSet h)
public Set<Term> getTerms()
Rule
public Set<Variable> getVariables()
Rule
public Set<Constant> getConstants()
Rule
public Set<Literal> getLiterals()
Rule
@Deprecated public Set<Term> getTerms(Term.Type type)
Rule
public Set<Variable> getFrontier()
Rule
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.