org.objectweb.medor.optim.api
Interface RuleConfiguration
- BasicQueryRewriter, JormQueryRewriter
public interface RuleConfiguration
This interface describes the configuration of a set of rules used by
the QueryRewriter.
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.
|
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)
rule
- the rule to be added.
getRules
public List getRules()
Gives the List of rules in the configuration
- the List of rules in the configuration
removeRule
public void removeRule(RewriteRule rule)
Deletes a rule from the configuration.
rule
- the rule to be removed