| java.lang.Object org.drools.rule.LogicTransformer
LogicTransformer | class LogicTransformer (Code) | | LogicTransformation is reponsible for removing redundant nodes and move Or
nodes upwards.
This class does not turn Exists into two Nots at this stage, that role is
delegated to the Builder.
author: mproctor |
Inner Class :interface Transformation | |
Inner Class :class AndOrTransformation implements Transformation | |
Inner Class :class ExistOrTransformation implements Transformation | |
Inner Class :public class NotOrTransformation implements Transformation | |
LogicTransformer | LogicTransformer()(Code) | | |
processTree | void processTree(GroupElement ce) throws InvalidPatternException(Code) | | Traverses a Tree, during the process it transforms Or nodes moving the
upwards and it removes duplicate logic statement, this does not include
Not nodes.
Traversal involves three levels the graph for each iteration. The first
level is the current node, this node will not be transformed, instead
what we are interested in are the children of the current node (called
the parent nodes) and the children of those parents (call the child
nodes).
Parameters: ce - |
|
|