public abstract class AbstractOptimizer extends Object implements IMOptimizer
Constructor and Description |
---|
AbstractOptimizer() |
Modifier and Type | Method and Description |
---|---|
String |
getActivationPropertyName()
Name of the property allowing to force activation or deactivation of the optimizer on a specific rule set.
|
boolean |
isActivated() |
void |
optimize(ICompilationContext ctxt,
IAddon rootAddon)
Checks activation and delegated optimization to
pOptimize(ICompilationContext, IAddon) . |
protected abstract void |
pOptimize(ICompilationContext ctxt,
IAddon addon)
Performs optimization.
|
void |
setActivated(boolean activated) |
public final void optimize(ICompilationContext ctxt, IAddon rootAddon) throws MRuleValidationException
pOptimize(ICompilationContext, IAddon)
.optimize
in interface IMOptimizer
ctxt
- Compilation contextrootAddon
- Addon to optimizeMRuleValidationException
public String getActivationPropertyName()
protected abstract void pOptimize(ICompilationContext ctxt, IAddon addon) throws MRuleValidationException
MRuleValidationException
public boolean isActivated()
public void setActivated(boolean activated)