com.hammurapi.reasoning.impl
Class PassThroughOptimizer
java.lang.Object
com.hammurapi.reasoning.impl.PassThroughOptimizer
- All Implemented Interfaces:
- RuleSetFlowOptimizer
public class PassThroughOptimizer
- extends Object
- implements RuleSetFlowOptimizer
|
Method Summary |
int |
getOrder()
Allows to order optimizers. |
void |
optimize(Flow ruleSetFlow)
Optimizes flow by removing unnecessary passthrough nodes and transitions and by
rearranging condition and accept nodes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughOptimizer
public PassThroughOptimizer()
optimize
public void optimize(Flow ruleSetFlow)
- Description copied from interface:
RuleSetFlowOptimizer
- Optimizes flow by removing unnecessary passthrough nodes and transitions and by
rearranging condition and accept nodes.
- Specified by:
optimize in interface RuleSetFlowOptimizer
getOrder
public int getOrder()
- Description copied from interface:
RuleSetFlowOptimizer
- Allows to order optimizers. Optimizers with higher order are executed after optimizers with
lower order.
- Specified by:
getOrder in interface RuleSetFlowOptimizer
- Returns: