|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.disi.smatch.data.Node
public class Node
This class represent a node in the hierarchy. It contains logical (cNode and cLab formulas); linguistic (WN senses,tokens) and structural information (parent and children of Node).
| Constructor Summary | |
|---|---|
Node()
|
|
Node(java.lang.String nodeName,
java.lang.String nodeId)
|
|
| Method Summary | |
|---|---|
void |
addAtomicConceptOfLabel(IAtomicConceptOfLabel sense)
adds atomic concepts of label to the node |
void |
addChild(INode child)
Adds child to the given node. |
boolean |
equals(java.lang.Object o)
|
IAtomicConceptOfLabel |
getAColById(java.lang.String tokenUID)
Get node acol by Id. |
java.util.Vector<IAtomicConceptOfLabel> |
getACoLs()
returns atomic concepts of labels associated with the givem node |
java.util.Vector<java.lang.String> |
getAlternativeLabels()
|
java.util.Vector<INode> |
getAncestors()
The returned list is orderd from the father node to the root. |
java.util.Vector<INode> |
getChildren()
Returns children of the node. |
java.lang.String |
getcLabFormula()
|
java.lang.String |
getCNodeFormula()
|
int |
getDepth()
returns depth of the node in the context |
int |
getDescendantCount()
Returns count of descendant nodes, including itself. |
java.util.Vector<INode> |
getDescendants()
Returns all descendants of the node. |
int |
getIndex()
Gets index in a Vector. |
static INode |
getInstance()
|
static INode |
getInstance(java.lang.String nodeName,
java.lang.String nodeId)
|
IAtomicConceptOfLabel |
getNMTAColById(java.lang.String tokenUID)
Get node matching task acol by Id. |
INodeData |
getNodeData()
Returns interface to node metadata. |
java.lang.String |
getNodeId()
Retunrs node id. |
java.util.Vector<IAtomicConceptOfLabel> |
getNodeMatchingTaskACols()
Fill and get the Vector of all logical formula representations of all concepts |
java.lang.String |
getNodeName()
Returns node label. |
java.lang.String |
getNodeUniqueName()
|
INode |
getParent()
Returns interface to the parent node. |
java.lang.String |
getParentRelationType()
|
java.lang.String |
getPathToRootString()
returns path to root string for the given node |
boolean |
getSource()
Indicates whether this node belongs to the source context. |
java.util.Vector<java.lang.String> |
getSynonyms()
|
double |
getWeight()
|
int |
hashCode()
|
boolean |
isRoot()
Retunrs true if the node is a root in the context and false otherwise. |
void |
removeChild(INode child)
Removes child of the node. |
void |
resetLogicalFormula()
clears cLab formula |
void |
resetSetOfSenses()
clear sets of senses |
void |
setcLabFormula(java.lang.String cLabFormula)
|
void |
setcLabFormulaToConjunciveForm(java.lang.String formula)
Set cLab formula to CNF and store in the concept |
void |
setcNodeFormula(java.lang.String cNodeFormula)
|
void |
setIndex(int index)
Sets index in a Vector. |
void |
setNodeId(java.lang.String nodeId)
|
void |
setNodeName(java.lang.String nodeName)
|
void |
setNodeUniqueName()
|
void |
setNodeUniqueName(java.lang.String uniqueName)
|
void |
setParent(INode parent)
|
void |
setSource(boolean source)
|
void |
sort()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Node()
public Node(java.lang.String nodeName,
java.lang.String nodeId)
| Method Detail |
|---|
public void setNodeName(java.lang.String nodeName)
setNodeName in interface INodeDatapublic java.util.Vector<java.lang.String> getSynonyms()
getSynonyms in interface INodeDatapublic java.util.Vector<java.lang.String> getAlternativeLabels()
getAlternativeLabels in interface INodeDatapublic double getWeight()
getWeight in interface INodeDatapublic java.lang.String getcLabFormula()
getcLabFormula in interface INodeDatapublic void setcLabFormula(java.lang.String cLabFormula)
setcLabFormula in interface INodeDatapublic void setcNodeFormula(java.lang.String cNodeFormula)
setcNodeFormula in interface INodeDatapublic static INode getInstance()
public INodeData getNodeData()
INode
getNodeData in interface INodepublic void setcLabFormulaToConjunciveForm(java.lang.String formula)
setcLabFormulaToConjunciveForm in interface INodeDatapublic void resetLogicalFormula()
INodeData
resetLogicalFormula in interface INodeDatapublic void resetSetOfSenses()
INodeData
resetSetOfSenses in interface INodeDatapublic void addAtomicConceptOfLabel(IAtomicConceptOfLabel sense)
INodeData
addAtomicConceptOfLabel in interface INodeDatapublic void addChild(INode child)
INode
addChild in interface INodechild - node to addpublic java.util.Vector<INode> getAncestors()
getAncestors in interface INodepublic java.util.Vector<INode> getDescendants()
INode
getDescendants in interface INodepublic int getDescendantCount()
INode
getDescendantCount in interface INodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isRoot()
INode
isRoot in interface INodepublic int getDepth()
INodeData
getDepth in interface INodeDatapublic int getIndex()
INodeData
getIndex in interface INodeDatapublic void setIndex(int index)
INodeData
setIndex in interface INodeDatapublic boolean getSource()
INodeData
getSource in interface INodeDatapublic void setSource(boolean source)
setSource in interface INodeDatapublic void sort()
sort in interface INodeDatapublic java.lang.String getPathToRootString()
INodeData
getPathToRootString in interface INodeDatapublic INode getParent()
INode
getParent in interface INodepublic java.lang.String getParentRelationType()
getParentRelationType in interface INodeDatapublic java.lang.String getNodeId()
INode
getNodeId in interface INodepublic java.lang.String getNodeName()
INode
getNodeName in interface INodepublic java.lang.String getNodeUniqueName()
getNodeUniqueName in interface INodeDatapublic java.util.Vector<INode> getChildren()
INode
getChildren in interface INodepublic void setParent(INode parent)
setParent in interface INodeDatapublic java.lang.String getCNodeFormula()
getCNodeFormula in interface INodeDatapublic java.util.Vector<IAtomicConceptOfLabel> getACoLs()
INodeData
getACoLs in interface INodeDatapublic void setNodeUniqueName(java.lang.String uniqueName)
setNodeUniqueName in interface INodeDatapublic java.lang.String toString()
toString in class java.lang.Object
public static INode getInstance(java.lang.String nodeName,
java.lang.String nodeId)
public void setNodeUniqueName()
setNodeUniqueName in interface INodeDatapublic void setNodeId(java.lang.String nodeId)
setNodeId in interface INodeDatapublic void removeChild(INode child)
INode
removeChild in interface INodechild - child node to removepublic IAtomicConceptOfLabel getNMTAColById(java.lang.String tokenUID)
INodeData
getNMTAColById in interface INodeDatatokenUID - token id
public IAtomicConceptOfLabel getAColById(java.lang.String tokenUID)
INodeData
getAColById in interface INodeDatatokenUID - token id
public java.util.Vector<IAtomicConceptOfLabel> getNodeMatchingTaskACols()
getNodeMatchingTaskACols in interface INodeData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||