public class Rule
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Atom[] |
m_body |
protected Atom |
m_head |
protected static uk.ac.ox.cs.JRDFox.model.InterningManager<Rule> |
s_interningManager |
| Modifier | Constructor and Description |
|---|---|
protected |
Rule(Atom head,
Atom[] body) |
| Modifier and Type | Method and Description |
|---|---|
Rule |
applySubstitution(java.util.Map<Variable,Term> substitution) |
static Rule |
create(Atom head,
Atom... body) |
Atom |
getBodyAtom(int index) |
Atom[] |
getBodyAtoms() |
Atom |
getHeadAtom() |
int |
getNumberOfBodyAtoms() |
boolean |
isSafe() |
protected java.lang.Object |
readResolve() |
Rule |
replaceHead(Atom newHeadAtom) |
Rule |
simplify() |
java.lang.String |
toString() |
void |
toString(java.lang.StringBuilder builder,
Prefixes prefixes) |
protected final Atom m_head
protected final Atom[] m_body
protected static final uk.ac.ox.cs.JRDFox.model.InterningManager<Rule> s_interningManager
public Atom getHeadAtom()
public int getNumberOfBodyAtoms()
public Atom getBodyAtom(int index)
public Atom[] getBodyAtoms()
public Rule simplify()
public boolean isSafe()
public java.lang.String toString()
toString in class java.lang.Objectpublic void toString(java.lang.StringBuilder builder,
Prefixes prefixes)
protected java.lang.Object readResolve()