public class TreeRepresentation extends Object implements Representation
Constructor and Description |
---|
TreeRepresentation() |
TreeRepresentation(TreeNode root)
Build a tree representation from a TreeNode
|
Modifier and Type | Method and Description |
---|---|
TreeRepresentation |
clone() |
boolean |
equals(Object representation) |
Integer |
getMaxId()
Get the max id within all nodes
|
int[] |
getNodeIdsSortedByName() |
int[] |
getNodeIdsSortedByProduction() |
String[] |
getNodeNames() |
TreeNode[] |
getOrderedNodeSetByLabel() |
TreeNode[] |
getOrderedNodeSetByProduction() |
String[] |
getProductionNames() |
TreeNode |
getRoot() |
String |
getTextFromData()
Returns a textual representation of the data stored in this
representation
|
int |
hashCode() |
void |
setDataFromText(String representationDescription)
Initializes a Representation using its textual description provided in
representationDescription |
String |
toString() |
public TreeRepresentation()
public TreeRepresentation(TreeNode root)
root
- Root of the Treepublic TreeRepresentation clone()
public int[] getNodeIdsSortedByName()
public int[] getNodeIdsSortedByProduction()
public String[] getNodeNames()
public TreeNode[] getOrderedNodeSetByLabel()
public TreeNode[] getOrderedNodeSetByProduction()
public String[] getProductionNames()
public TreeNode getRoot()
public String getTextFromData()
Representation
getTextFromData
in interface Representation
public void setDataFromText(String representationDescription) throws Exception
Representation
representationDescription
setDataFromText
in interface Representation
representationDescription
- the textual description of the representation to be
initializedException
public Integer getMaxId()
Copyright © 2014 Semantic Analytics Group @ Uniroma2. All rights reserved.