it.unitn.disi.smatch.data
Interface INodeData

All Known Implementing Classes:
Node

public interface INodeData

Data part of the node.

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk, Aliaksandr Autayeu avtaev@gmail.com

Method Summary
 void addAtomicConceptOfLabel(IAtomicConceptOfLabel sense)
          adds atomic concepts of label to the node
 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.lang.String getcLabFormula()
           
 java.lang.String getCNodeFormula()
           
 int getDepth()
          returns depth of the node in the context
 int getIndex()
          Gets index in a Vector.
 IAtomicConceptOfLabel getNMTAColById(java.lang.String tokenUID)
          Get node matching task acol by Id.
 java.util.Vector<IAtomicConceptOfLabel> getNodeMatchingTaskACols()
          Returns vector of atomic concepts for the node matching task.
 java.lang.String getNodeUniqueName()
           
 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()
           
 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()
           
 

Method Detail

setNodeName

void setNodeName(java.lang.String nodeName)

getSynonyms

java.util.Vector<java.lang.String> getSynonyms()

getAlternativeLabels

java.util.Vector<java.lang.String> getAlternativeLabels()

getWeight

double getWeight()

getcLabFormula

java.lang.String getcLabFormula()

setcLabFormula

void setcLabFormula(java.lang.String cLabFormula)

setcNodeFormula

void setcNodeFormula(java.lang.String cNodeFormula)

setcLabFormulaToConjunciveForm

void setcLabFormulaToConjunciveForm(java.lang.String formula)
Set cLab formula to CNF and store in the concept


getNodeUniqueName

java.lang.String getNodeUniqueName()

setParent

void setParent(INode parent)

getACoLs

java.util.Vector<IAtomicConceptOfLabel> getACoLs()
returns atomic concepts of labels associated with the givem node

Returns:

getNodeMatchingTaskACols

java.util.Vector<IAtomicConceptOfLabel> getNodeMatchingTaskACols()
Returns vector of atomic concepts for the node matching task. Basically, all concepts including parent concepts with some filtering Same filter is used in getAllContextACols, therefore it is needed here.

Returns:

getNMTAColById

IAtomicConceptOfLabel getNMTAColById(java.lang.String tokenUID)
Get node matching task acol by Id.

Parameters:
tokenUID - token id
Returns:
acol

getAColById

IAtomicConceptOfLabel getAColById(java.lang.String tokenUID)
Get node acol by Id.

Parameters:
tokenUID - token id
Returns:
acol

setNodeUniqueName

void setNodeUniqueName(java.lang.String uniqueName)

setNodeUniqueName

void setNodeUniqueName()

setNodeId

void setNodeId(java.lang.String nodeId)

getParentRelationType

java.lang.String getParentRelationType()

addAtomicConceptOfLabel

void addAtomicConceptOfLabel(IAtomicConceptOfLabel sense)
adds atomic concepts of label to the node

Parameters:
sense -

getCNodeFormula

java.lang.String getCNodeFormula()

resetLogicalFormula

void resetLogicalFormula()
clears cLab formula


resetSetOfSenses

void resetSetOfSenses()
clear sets of senses


getPathToRootString

java.lang.String getPathToRootString()
returns path to root string for the given node

Returns:

getDepth

int getDepth()
returns depth of the node in the context

Returns:

getIndex

int getIndex()
Gets index in a Vector. This is to avoid hashtables.

Returns:

setIndex

void setIndex(int index)
Sets index in a Vector. This is to avoid hashtables.

Parameters:
index -

getSource

boolean getSource()
Indicates whether this node belongs to the source context. This is needed for new algorithms which sometimes swap order.

Returns:

setSource

void setSource(boolean source)

sort

void sort()


© 2010 Knowdive @ DISI