Constructor and Description |
---|
XmlCorrector(TreeSchema ts,
Tree tree,
int threshold)
Constructor to use to create an XmlCorrector
|
XmlCorrectorMatrix(TreeSchema ts,
Tree tree,
int threshold) |
Modifier and Type | Field and Description |
---|---|
Tree |
XmlCorrectorController.t |
Modifier and Type | Field and Description |
---|---|
java.util.HashMap<Tree,java.lang.Integer> |
XmlCorrectorController.tree_ids |
java.util.HashMap<Tree,java.util.Hashtable<java.lang.Integer,java.util.Collection<OperationSequence>>> |
XmlCorrectorController.tree_results |
Modifier and Type | Method and Description |
---|---|
void |
XmlCorrectorController.addTreeResult(Tree t,
OperationSequence os,
int cost)
Add the tree and the operationSequence that has given it to a Collection
|
void |
XmlCorrectorController.createResultFile(Tree tree)
Creates the file result for a given tree
|
java.lang.Integer |
XmlCorrectorController.getTreeId(Tree t)
Returns an unique id for a Tree.
|
Modifier and Type | Method and Description |
---|---|
Tree |
Cell.make(Tree t)
Use the given Tree to make the Operations of the first OperationSequence
and returns the modified Tree.
|
Tree |
Result.make(Tree t)
Use the given Tree to make the Operations of the first OperationSequence
and returns the modified Tree.
|
Modifier and Type | Method and Description |
---|---|
Tree |
Cell.make(Tree t)
Use the given Tree to make the Operations of the first OperationSequence
and returns the modified Tree.
|
Tree |
Result.make(Tree t)
Use the given Tree to make the Operations of the first OperationSequence
and returns the modified Tree.
|
Constructor and Description |
---|
TreeEditionMatrix(Tree tree,
Tree reference,
int max_cost)
Creates a TreeEditionMatrix where tree should be correct with reference.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<OperationSequence> |
OperationSequence.abstractionToOperationSequences(Tree t)
Generates OperationSequence from the current one but without any
abstraction.
|
abstract int |
Operation.getCost(Tree tree)
Calculates the cost of the Operation on the given Tree
|
int |
OperationSequence.getCost(Tree t)
Calculates the global cost of the sequence for doing every Operations on
the Tree given
|
abstract void |
Operation.make(Tree tree)
Makes the Operation on the given Tree
|
void |
OperationSequence.make(Tree t)
Makes every Operation of the OperationSequence on the Tree given
|
org.jdom.Element |
OperationSequence.toXmlElement(Tree t,
int id)
Returns the OperationSequence formated to fit Xml as JDOM.
|
org.jdom.Element |
OperationSequence.toXmlElement(Tree t,
VocabTranslator vt,
int id)
Returns the OperationSequence formated to fit Xml as JDOM.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<OperationSequence> |
AddMinimalTreeOperation.abstractionToOperationSequences(Tree t) |
java.util.Collection<OperationSequence> |
CorrectTreeOperation.abstractionToOperationSequences(Tree t) |
int |
AddMinimalTreeOperation.getCost(Tree tree) |
int |
CorrectTreeOperation.getCost(Tree tree) |
void |
AddMinimalTreeOperation.make(Tree tree) |
void |
CorrectTreeOperation.make(Tree tree) |
Modifier and Type | Method and Description |
---|---|
int |
AddNodeOperation.getCost(Tree tree) |
int |
RemoveNodeOperation.getCost(Tree tree) |
int |
RelabelNodeOperation.getCost(Tree tree) |
void |
AddNodeOperation.make(Tree tree) |
void |
RemoveNodeOperation.make(Tree tree) |
void |
RelabelNodeOperation.make(Tree tree) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<OperationSequence> |
RemoveTreeOperation.abstractionToOperationSequences(Tree t) |
java.util.Collection<OperationSequence> |
AddTreeOperation.abstractionToOperationSequences(Tree t) |
abstract java.util.Collection<OperationSequence> |
UpdateOperation.abstractionToOperationSequences(Tree t)
Generates a list of OperationSequence that can't contain any Operation
that is Abstract
|
java.util.Collection<OperationSequence> |
ReplaceTreeOperation.abstractionToOperationSequences(Tree t) |
int |
RemoveTreeOperation.getCost(Tree tree) |
int |
AddTreeOperation.getCost(Tree tree) |
int |
ReplaceTreeOperation.getCost(Tree tree) |
void |
RemoveTreeOperation.make(Tree tree) |
void |
AddTreeOperation.make(Tree tree) |
void |
ReplaceTreeOperation.make(Tree tree) |
Constructor and Description |
---|
AddTreeOperation(Address address,
Tree tree)
Constructor of the operations ReplaceTreeOperation
|
ReplaceTreeOperation(Address address,
Tree tree,
Result result)
Constructor of the operations ReplaceTreeOperation
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Tree> |
TreeSchema.getMinimalTrees(java.lang.Character c)
Returns an ArrayList containing every MinimalTree for the given Header
|
Modifier and Type | Method and Description |
---|---|
boolean |
TreeSchema.isValid(Tree tree)
Checks if a Tree is valid by using isDeepValid on the root
|
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.clone() |
Tree |
Tree.getNodeAsTree(Address address)
Returns Tree create from the Node at the address given
|
Modifier and Type | Method and Description |
---|---|
void |
Tree.addTree(Address address,
Tree tree)
Adds the Tree at the Address given
|
void |
Tree.addTree(java.lang.String address,
Tree tree)
Creates an Address with the String given and adds the Tree at this
Address
|
void |
Tree.replaceTree(Address address,
Tree tree)
Replace the Node and its children at the given Address with the tree
given
|
void |
Tree.replaceTree(java.lang.String address,
Tree tree)
Creates an Address with the String given and replace the Node and its
children at this Address with the tree given
|
Constructor and Description |
---|
Tree(Tree tree)
Constructor that copies the given Tree
|