Class VNode

java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.core.VNode
All Implemented Interfaces:
Serializable

public class VNode extends Object implements 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 Details

    • VNode

      public VNode(String new_id)
      Creates a new VNode object.
      Parameters:
      new_id - the identifier for the new node
    • VNode

      public VNode(String new_id, int verbosity)
      Creates a new VNode object with verbosity.
      Parameters:
      new_id - the identifier for the new node
      verbosity - the level of verbosity
  • Method Details

    • addSecDaughter

      public void addSecDaughter(GraphNode secDaughter, String secEdge)
      Adds a secondary daughter and its edge label.
      Parameters:
      secDaughter - the secondary daughter node
      secEdge - the edge label
    • setMother

      public void setMother(NT newMother)
      Sets the mother node.
      Parameters:
      newMother - the mother node
    • getId

      public String getId()
      Gets the identifier of this virtual node.
      Returns:
      the identifier
    • setEdge2Mother

      public void setEdge2Mother(String newEdge)
      Sets the edge label to the mother node.
      Parameters:
      newEdge - the edge label
    • addInfo

      public void addInfo(GraphNode node)
      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.