org.deri.iris.evaluation.topdown.oldt
Class OLDTEvaluator

java.lang.Object
  extended by org.deri.iris.evaluation.topdown.oldt.OLDTEvaluator
All Implemented Interfaces:
ITopDownEvaluator

public class OLDTEvaluator
extends Object
implements ITopDownEvaluator

Implementation of the OLDT evaluator. For details see 'Deduktive Datenbanken' by Cremers, Griefahn and Hinze (ISBN 978-3528047009).

Author:
gigi

Field Summary
static SimpleRelationFactory srf
           
 
Constructor Summary
OLDTEvaluator(IFacts facts, List<IRule> rules)
          Constructor
 
Method Summary
 IRelation evaluate(IQuery query)
          Evaluate given query
 MemoTable getMemoTable()
           
 List<IVariable> getOutputVariables()
          Return variables of the initial query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srf

public static final SimpleRelationFactory srf
Constructor Detail

OLDTEvaluator

public OLDTEvaluator(IFacts facts,
                     List<IRule> rules)
Constructor

Parameters:
facts - one or many facts
rules - list of rules
Method Detail

getMemoTable

public MemoTable getMemoTable()

evaluate

public IRelation evaluate(IQuery query)
                   throws EvaluationException
Evaluate given query

Specified by:
evaluate in interface ITopDownEvaluator
Parameters:
query - a query
Returns:
relation containing all resolved tuples.
Throws:
EvaluationException - thrown on error

getOutputVariables

public List<IVariable> getOutputVariables()
Return variables of the initial query

Specified by:
getOutputVariables in interface ITopDownEvaluator
Returns:
list of output variables