Class VNode
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.core.VNode
- All Implemented Interfaces:
Serializable
The purpose of the class VNode (= virtual node) is to temporarily store
mother (secondary daughter) information concerning daughters (secondary
mothers) that have not been created yet. The necessity of creating a VNode
arises when the dom parser parses an NT but has not parsed one of the
daughters (secondary mothers) belongig to it.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTransfers the stored information to the newly created graph node.voidaddSecDaughter(GraphNode secDaughter, String secEdge) Adds a secondary daughter and its edge label.getId()Gets the identifier of this virtual node.intGets the currently set level of verbosity of this instance.voidsetEdge2Mother(String newEdge) Sets the edge label to the mother node.voidSets the mother node.voidsetVerbosity(int verbosity) Sets the currently set level of verbosity of this instance.
-
Constructor Details
-
VNode
Creates a new VNode object.- Parameters:
new_id- the identifier for the new node
-
VNode
Creates a new VNode object with verbosity.- Parameters:
new_id- the identifier for the new nodeverbosity- the level of verbosity
-
-
Method Details
-
addSecDaughter
-
setMother
-
getId
-
setEdge2Mother
Sets the edge label to the mother node.- Parameters:
newEdge- the edge label
-
addInfo
Transfers the stored information to the newly created graph node.- Parameters:
node- the graph node to associate with this virtual information
-
getVerbosity
public int getVerbosity()Gets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Returns:
- The level of verbosity.
-
setVerbosity
public void setVerbosity(int verbosity) Sets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Parameters:
verbosity- The level of verbosity.
-