public class ExpandNode extends Object implements Comparable<ExpandNode>
ExpandNode class represents a node in the search tree that is used to find the optimal
interpretation for a given document.| Modifier and Type | Class and Description |
|---|---|
static class |
ExpandNode.ExpandNodeException |
static class |
ExpandNode.RefMarker |
static class |
ExpandNode.StateChange |
| Modifier and Type | Field and Description |
|---|---|
TreeSet<ExpandNode> |
candidates |
int |
id |
static boolean |
INCOMPLETE_OPTIMIZATION
This optimization may miss some cases and will not always return the best interpretation.
|
static int |
MAX_SEARCH_STEPS |
List<ExpandNode.StateChange> |
modifiedActs |
| Constructor and Description |
|---|
ExpandNode(ExpandNode parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(ExpandNode.StateChange.Mode m) |
static List<Option> |
collectConflicts(Document doc) |
int |
compareTo(ExpandNode c) |
Neuron.NormWeight |
computeAccumulatedWeight() |
void |
computeSelectedOption(Iteration t) |
boolean |
containedInSelectedBranch(long v,
Option n) |
static ExpandNode |
createCandidate(Document doc,
List<Option> changed,
ExpandNode parent,
ExpandNode selectedParent,
ExpandNode excludedParent,
Option ref,
ExpandNode.RefMarker marker) |
static ExpandNode |
createInitialExpandNode(Document doc) |
void |
generateInitialCandidates(Iteration t) |
void |
generateNextLevelCandidates(Iteration t,
ExpandNode selectedParent,
ExpandNode excludedParent) |
boolean |
isCovered(long g) |
String |
toString() |
public static boolean INCOMPLETE_OPTIMIZATION
public static int MAX_SEARCH_STEPS
public int id
public List<ExpandNode.StateChange> modifiedActs
public TreeSet<ExpandNode> candidates
public ExpandNode(ExpandNode parent)
public static ExpandNode createInitialExpandNode(Document doc)
public void computeSelectedOption(Iteration t)
public void generateInitialCandidates(Iteration t)
public void generateNextLevelCandidates(Iteration t, ExpandNode selectedParent, ExpandNode excludedParent)
public Neuron.NormWeight computeAccumulatedWeight()
public boolean isCovered(long g)
public boolean containedInSelectedBranch(long v,
Option n)
public static ExpandNode createCandidate(Document doc, List<Option> changed, ExpandNode parent, ExpandNode selectedParent, ExpandNode excludedParent, Option ref, ExpandNode.RefMarker marker)
public void changeState(ExpandNode.StateChange.Mode m)
public int compareTo(ExpandNode c)
compareTo in interface Comparable<ExpandNode>Copyright © 2017. All rights reserved.