|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.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 INodeData
public java.util.Vector<java.lang.String> getSynonyms()
getSynonyms
in interface INodeData
public java.util.Vector<java.lang.String> getAlternativeLabels()
getAlternativeLabels
in interface INodeData
public double getWeight()
getWeight
in interface INodeData
public java.lang.String getcLabFormula()
getcLabFormula
in interface INodeData
public void setcLabFormula(java.lang.String cLabFormula)
setcLabFormula
in interface INodeData
public void setcNodeFormula(java.lang.String cNodeFormula)
setcNodeFormula
in interface INodeData
public static INode getInstance()
public INodeData getNodeData()
INode
getNodeData
in interface INode
public void setcLabFormulaToConjunciveForm(java.lang.String formula)
setcLabFormulaToConjunciveForm
in interface INodeData
public void resetLogicalFormula()
INodeData
resetLogicalFormula
in interface INodeData
public void resetSetOfSenses()
INodeData
resetSetOfSenses
in interface INodeData
public void addAtomicConceptOfLabel(IAtomicConceptOfLabel sense)
INodeData
addAtomicConceptOfLabel
in interface INodeData
public void addChild(INode child)
INode
addChild
in interface INode
child
- node to addpublic java.util.Vector<INode> getAncestors()
getAncestors
in interface INode
public java.util.Vector<INode> getDescendants()
INode
getDescendants
in interface INode
public int getDescendantCount()
INode
getDescendantCount
in interface INode
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isRoot()
INode
isRoot
in interface INode
public int getDepth()
INodeData
getDepth
in interface INodeData
public int getIndex()
INodeData
getIndex
in interface INodeData
public void setIndex(int index)
INodeData
setIndex
in interface INodeData
public boolean getSource()
INodeData
getSource
in interface INodeData
public void setSource(boolean source)
setSource
in interface INodeData
public void sort()
sort
in interface INodeData
public java.lang.String getPathToRootString()
INodeData
getPathToRootString
in interface INodeData
public INode getParent()
INode
getParent
in interface INode
public java.lang.String getParentRelationType()
getParentRelationType
in interface INodeData
public java.lang.String getNodeId()
INode
getNodeId
in interface INode
public java.lang.String getNodeName()
INode
getNodeName
in interface INode
public java.lang.String getNodeUniqueName()
getNodeUniqueName
in interface INodeData
public java.util.Vector<INode> getChildren()
INode
getChildren
in interface INode
public void setParent(INode parent)
setParent
in interface INodeData
public java.lang.String getCNodeFormula()
getCNodeFormula
in interface INodeData
public java.util.Vector<IAtomicConceptOfLabel> getACoLs()
INodeData
getACoLs
in interface INodeData
public void setNodeUniqueName(java.lang.String uniqueName)
setNodeUniqueName
in interface INodeData
public 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 INodeData
public void setNodeId(java.lang.String nodeId)
setNodeId
in interface INodeData
public void removeChild(INode child)
INode
removeChild
in interface INode
child
- child node to removepublic IAtomicConceptOfLabel getNMTAColById(java.lang.String tokenUID)
INodeData
getNMTAColById
in interface INodeData
tokenUID
- token id
public IAtomicConceptOfLabel getAColById(java.lang.String tokenUID)
INodeData
getAColById
in interface INodeData
tokenUID
- 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 |