org.deri.iris.api
Interface IProgramOptimisation

All Known Implementing Classes:
MagicSets, RuleFilter

public interface IProgramOptimisation

Interface for a rule optimisation algorithm.

Since:
0.6
Author:
Richard P??ttler (richard dot poettler at deri dot at)

Nested Class Summary
static class IProgramOptimisation.Result
          Represents the result of a rule optimisation.
 
Method Summary
 IProgramOptimisation.Result optimise(Collection<IRule> rules, IQuery query)
          Applies the optimisation algorithm to a set of rules.
 

Method Detail

optimise

IProgramOptimisation.Result optimise(Collection<IRule> rules,
                                     IQuery query)
Applies the optimisation algorithm to a set of rules. A Result which contains the transformed rules and the adjusted query.

Parameters:
rules - the rules to transform
query - the query for which to transform the rules
Returns:
a optimisation result or null, if the transformation failed.