org.objectweb.medor.optim.api

Interface RuleConfiguration

Known Implementing Classes:
BasicQueryRewriter, JormQueryRewriter

public interface RuleConfiguration

This interface describes the configuration of a set of rules used by the QueryRewriter.

Method Summary

void
addRule(RewriteRule rule)
Adds a rule to a configuration, together with parameters such as the number of times the rules is applied (once, saturation)
List
getRules()
Gives the List of rules in the configuration
void
removeRule(RewriteRule rule)
Deletes a rule from the configuration.

Method Details

addRule

public void addRule(RewriteRule rule)
Adds a rule to a configuration, together with parameters such as the number of times the rules is applied (once, saturation)

Parameters:
rule - the rule to be added.


getRules

public List getRules()
Gives the List of rules in the configuration

Returns:
the List of rules in the configuration


removeRule

public void removeRule(RewriteRule rule)
Deletes a rule from the configuration.

Parameters:
rule - the rule to be removed