|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<TreeNode<E>>
Util.Structures.TreeNode<Symbol>
Mapper.DerivationNode
public class DerivationNode
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DerivationNode()
|
|
DerivationNode(TreeNode<Symbol> copy)
|
|
DerivationNode(TreeNode<Symbol> parent,
Symbol data)
|
Method Summary | |
---|---|
int |
getCodonIndex()
Get the index of the codon used to choose the child (production) of this tree node. -1 is returned if no codon was used (e.g., if production was choosen because it was the only one to pick) |
int |
getCodonPick()
Get the production picked by the codon. -1 is returned if no codon was used (e.g., if production was choosen because it was the only one to pick) |
int |
getDepth()
Get depth of this node in the tree |
void |
setCodonIndex(int codonIndex,
int codonValue,
int codonPick)
|
void |
setDepth(int d)
Set depth of this node and it's children |
java.lang.String |
toString()
Build the string using a textural tree-view |
Methods inherited from class Util.Structures.TreeNode |
---|
add, collapse, getData, getEnd, getID, getInfo, getMaxDepth, getParent, main, setData, setID, setInfo, setParent |
Methods inherited from class java.util.ArrayList |
---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public DerivationNode()
public DerivationNode(TreeNode<Symbol> copy)
public DerivationNode(TreeNode<Symbol> parent, Symbol data)
Method Detail |
---|
public void setCodonIndex(int codonIndex, int codonValue, int codonPick)
public void setDepth(int d)
TreeNode
setDepth
in class TreeNode<Symbol>
d
- depthpublic int getDepth()
TreeNode
getDepth
in class TreeNode<Symbol>
public int getCodonIndex()
public int getCodonPick()
public java.lang.String toString()
toString
in class TreeNode<Symbol>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |