public class RightRotation extends java.lang.Object implements VtreeOperation
| Constructor and Description |
|---|
RightRotation() |
| Modifier and Type | Method and Description |
|---|---|
VtreeNode |
apply(Vtree tree)
Computes the new vtree after application of this operation
on the specified vtree.
|
SDDTree |
applyToSDD(SDDTree sdd,
SDDMemory mem)
Computes the SDD tree (associated with the vtree on which this operation is applied)
that are equivalent to the specified SDD tree defined for the specified vtree.
|
boolean |
isApplicable(Vtree tree)
Indicates whether this operation is applicable for the specified vtree.
|
static SDDTree |
rightRotation(SDDTree sdd,
SDDMemory mem,
VtreePath path)
Applies the right rotation operation on the specified SDD tree
at the leaf of the specified path.
|
static SDDTree |
rightRotationOnCurrentNode(SDDMemory mem,
SDDTreeDisjunction sdd)
Applies the right rotation operation on the specified SDD tree
at the current node.
|
static SDDTree |
rightRotationOnCurrentNode2(SDDMemory mem,
SDDTreeDisjunction sdd) |
public boolean isApplicable(Vtree tree)
VtreeOperationisApplicable in interface VtreeOperationtree - the vtree on which we want to perform this operation.public VtreeNode apply(Vtree tree)
VtreeOperationapply in interface VtreeOperationtree - the vtree on which the operation is applied.public static SDDTree rightRotation(SDDTree sdd, SDDMemory mem, VtreePath path)
sdd - the SDD tree on which the operation is applied.mem - the SDD memory used to record already computed objects.path - the path that indicate where the operation needs to be applied.public static SDDTree rightRotationOnCurrentNode(SDDMemory mem, SDDTreeDisjunction sdd)
sdd - the SDD tree on which the operation is applied.mem - the SDD memory used to record already computed objects.public static SDDTree rightRotationOnCurrentNode2(SDDMemory mem, SDDTreeDisjunction sdd)
public SDDTree applyToSDD(SDDTree sdd, SDDMemory mem)
VtreeOperationapplyToSDD in interface VtreeOperationsdd - the SDD tree that is reformulated.mem - the memory used to store known results.apply(tree).