public class OptimisationReport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<SDDTree,SDDTree> |
_replacementMap
A map that indicates how each SDDTree has been replaced.
|
| Modifier and Type | Method and Description |
|---|---|
static OptimisationReport |
applyChildren(OptimisationReport primeRep,
OptimisationReport subRep,
OptimisationProblem pb)
Computes the optimisation report corresponding to the application
of the specified optimisation reports on the children of the current vtree.
|
static OptimisationReport |
applyIterative(OptimisationReport rep1,
OptimisationReport rep2) |
OptimisationProblem |
getNewProblem()
Returns the optimisation problem
that appears after this optimisation has been applied.
|
java.util.Map<SDDTree,SDDTree> |
getNonNullMap() |
java.util.Collection<SDDTree> |
getSDDs()
Returns the collection of SDDTrees after this optimisation was performed.
|
Vtree |
getVtree()
Returns the vtree in this report
(the same as the old vtree if !vtreeChanged()).
|
static OptimisationReport |
noChange(OptimisationProblem pb) |
static OptimisationReport |
optimisationChange(java.util.Map<SDDTree,SDDTree> replacementMap,
java.util.Set<CanonicalWatched> subnodes,
Vtree tree,
java.util.Collection<SDDTree> newSDDs) |
int |
size() |
void |
unwatch()
Unwatches the elements in this report.
|
boolean |
vtreeChanged()
Indicates whether the optimisation was successful.
|
public boolean vtreeChanged()
public Vtree getVtree()
public static OptimisationReport noChange(OptimisationProblem pb)
public static OptimisationReport optimisationChange(java.util.Map<SDDTree,SDDTree> replacementMap, java.util.Set<CanonicalWatched> subnodes, Vtree tree, java.util.Collection<SDDTree> newSDDs)
public int size()
public static OptimisationReport applyIterative(OptimisationReport rep1, OptimisationReport rep2)
public static OptimisationReport applyChildren(OptimisationReport primeRep, OptimisationReport subRep, OptimisationProblem pb)
primeRep - the optimisation report for the primes.subRep - the optimisation report for the subs.pb - the optimisation problem upon which this optimisation is defined.public java.util.Collection<SDDTree> getSDDs()
public void unwatch()
public OptimisationProblem getNewProblem()