public abstract class AbstractAlgorithm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected NodeChecker |
checker
A node checker.
|
protected SolutionSpace |
solutionSpace
The lattice.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlgorithm(SolutionSpace solutionSpace,
NodeChecker checker)
Walks the lattice.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeUtilityForMonotonicMetrics(Transformation transformation)
Determine information loss of the given node if it can be
used for estimating minimum and maximum information
loss for tagged nodes.
|
Transformation |
getGlobalOptimum()
Returns the global optimum.
|
protected void |
progress(double progress)
Propagate progress to listeners
|
void |
setListener(ARXListener listener)
Sets a listener
|
protected void |
trackOptimum(Transformation transformation)
Keeps track of the global optimum.
|
abstract void |
traverse()
Implement this method in order to provide a new algorithm.
|
protected NodeChecker checker
protected SolutionSpace solutionSpace
protected AbstractAlgorithm(SolutionSpace solutionSpace, NodeChecker checker)
solutionSpace
- The solution spacechecker
- The checkerpublic Transformation getGlobalOptimum()
public void setListener(ARXListener listener)
listener
- public abstract void traverse()
protected void computeUtilityForMonotonicMetrics(Transformation transformation)
transformation
- protected void progress(double progress)
progress
- protected void trackOptimum(Transformation transformation)
transformation
-