public abstract class AbstractAlgorithm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected NodeChecker |
checker
A node checker.
|
protected Lattice |
lattice
The lattice.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlgorithm(Lattice lattice,
NodeChecker checker)
Walks the lattice.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeUtilityForMonotonicMetrics(Node node)
Determine information loss of the given node if it can be
used for estimating minimum and maximum information
loss for tagged nodes.
|
java.util.List<Node> |
getAllAnonymousNodes()
Returns a list of all anonymous nodes in the lattice.
|
Node |
getGlobalOptimum()
Returns the global optimum.
|
protected void |
trackOptimum(Node node)
Keeps track of the global optimum.
|
abstract void |
traverse()
Implement this method in order to provide a new algorithm.
|
protected NodeChecker checker
protected Lattice lattice
protected AbstractAlgorithm(Lattice lattice, NodeChecker checker)
lattice
- The latticechecker
- The checkerpublic java.util.List<Node> getAllAnonymousNodes()
public Node getGlobalOptimum()
public abstract void traverse()
protected void computeUtilityForMonotonicMetrics(Node node)
node
- protected void trackOptimum(Node node)
node
-