|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.rules.compiler.RuleElement
org.deri.iris.rules.compiler.HeadSubstituter
public class HeadSubstituter
A compiled rule element representing the substitution of variable bindings in to the rule head.
| Field Summary | |
|---|---|
protected Configuration |
mConfiguration
The knowledge-base's configuration object. |
protected ITuple |
mHeadTuple
The rule head tuple. |
protected int[] |
mIndices
The indices of variables in substitution order. |
| Fields inherited from class org.deri.iris.rules.compiler.RuleElement |
|---|
mOutputVariables |
| Constructor Summary | |
|---|---|
HeadSubstituter(List<IVariable> variables,
ITuple headTuple,
Configuration configuration)
Constructor. |
|
| Method Summary | |
|---|---|
IRelation |
process(IRelation inputRelation)
Called to process tuples from previous literals. |
| Methods inherited from class org.deri.iris.rules.compiler.RuleElement |
|---|
getDeltaSubstitution, getOutputVariables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ITuple mHeadTuple
protected final int[] mIndices
protected final Configuration mConfiguration
| Constructor Detail |
|---|
public HeadSubstituter(List<IVariable> variables,
ITuple headTuple,
Configuration configuration)
throws EvaluationException
variables - The variables from the rule body.headTuple - The tuple from the rule head.
EvaluationException - If unbound variables occur.| Method Detail |
|---|
public IRelation process(IRelation inputRelation)
RuleElement
process in class RuleElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||