public class Analysis
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EOL
End of line characters used in outputs of analyses.
|
static java.lang.String |
PATH
Relative path from the home folder to testing documents.
|
Constructor and Description |
---|
Analysis() |
Modifier and Type | Method and Description |
---|---|
protected Tree |
acquireDataTree(java.lang.String analysisName,
int grammarId,
int nodesCount,
int serialNumber)
Provides the instance of the required evaluation data tree instance.
|
protected Grammar |
acquireGrammarInstance(int grammarId)
Provides the instance of the required evaluation grammar instance.
|
protected void |
exportComputedAnalysis(java.lang.String outputName,
java.lang.StringBuilder stringBuilder)
Exports the provided analysis output into the required text file.
|
public static final java.lang.String PATH
public static final java.lang.String EOL
protected Tree acquireDataTree(java.lang.String analysisName, int grammarId, int nodesCount, int serialNumber)
analysisName
- Analysis name to determine directory.grammarId
- Identifier of the associated grammar.nodesCount
- Number of nodes to reference the required document.serialNumber
- Serial number to reference the required document.protected Grammar acquireGrammarInstance(int grammarId)
grammarId
- Identifier of the requested grammar.protected void exportComputedAnalysis(java.lang.String outputName, java.lang.StringBuilder stringBuilder)
outputName
- Core part of the analysis output name.stringBuilder
- Textual output of the performed analysis.