org.deri.iris.rules.compiler
Class EquivalenceResolver

java.lang.Object
  extended by org.deri.iris.rules.compiler.RuleElement
      extended by org.deri.iris.rules.compiler.EquivalenceResolver

public class EquivalenceResolver
extends RuleElement

This rule element creates all possible combinations of an input relation using the equivalent terms, and adds these combinations to the output relation.

Author:
Adrian Marte

Field Summary
 
Fields inherited from class org.deri.iris.rules.compiler.RuleElement
mOutputVariables
 
Constructor Summary
EquivalenceResolver(List<IVariable> inputVariables, IEquivalentTerms equivalentTerms, Configuration configuration)
           
 
Method Summary
 IRelation process(IRelation input)
          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
 

Constructor Detail

EquivalenceResolver

public EquivalenceResolver(List<IVariable> inputVariables,
                           IEquivalentTerms equivalentTerms,
                           Configuration configuration)
Method Detail

process

public IRelation process(IRelation input)
                  throws EvaluationException
Description copied from class: RuleElement
Called to process tuples from previous literals.

Specified by:
process in class RuleElement
Returns:
The output relation for this literal.
Throws:
EvaluationException