com.hammurapi.reasoning.impl
Class IniliningOptimizer
java.lang.Object
com.hammurapi.reasoning.impl.IniliningOptimizer
- All Implemented Interfaces:
- RuleSetFlowOptimizer
public class IniliningOptimizer
- extends Object
- implements RuleSetFlowOptimizer
Optimizes flow by setting inline flag to true for nodes and
transitions which form a chain and therefore there is no reason
to spawn multiple task for execution of each of them.
- Author:
- Pavel Vlasov
|
Method Summary |
int |
getOrder()
This optimization shall be executed after transition sharing optimization. |
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 |
IniliningOptimizer
public IniliningOptimizer()
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()
- This optimization shall be executed after transition sharing optimization.
- Specified by:
getOrder in interface RuleSetFlowOptimizer
- Returns: