org.jscience.ml.tigerxml.core
Class VNode

java.lang.Object
  extended by org.jscience.ml.tigerxml.core.VNode
All Implemented Interfaces:
java.io.Serializable

public class VNode
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Constructor Summary
VNode(java.lang.String new_id)
          Creates a new VNode object.
VNode(java.lang.String new_id, int verbosity)
          Creates a new VNode object.
 
Method Summary
 void addInfo(GraphNode node)
          DOCUMENT ME!
 void addSecDaughter(GraphNode secDaughter, java.lang.String secEdge)
          DOCUMENT ME!
 java.lang.String getId()
          DOCUMENT ME!
 int getVerbosity()
          Gets the currently set level of verbosity of this instance.
 void setEdge2Mother(java.lang.String newEdge)
          DOCUMENT ME!
 void setMother(NT newMother)
          DOCUMENT ME!
 void setVerbosity(int verbosity)
          Sets the currently set level of verbosity of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VNode

public VNode(java.lang.String new_id)
Creates a new VNode object.

Parameters:
new_id - DOCUMENT ME!

VNode

public VNode(java.lang.String new_id,
             int verbosity)
Creates a new VNode object.

Parameters:
new_id - DOCUMENT ME!
verbosity - DOCUMENT ME!
Method Detail

addSecDaughter

public void addSecDaughter(GraphNode secDaughter,
                           java.lang.String secEdge)
DOCUMENT ME!

Parameters:
secDaughter - DOCUMENT ME!
secEdge - DOCUMENT ME!

setMother

public void setMother(NT newMother)
DOCUMENT ME!

Parameters:
newMother - DOCUMENT ME!

getId

public java.lang.String getId()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setEdge2Mother

public void setEdge2Mother(java.lang.String newEdge)
DOCUMENT ME!

Parameters:
newEdge - DOCUMENT ME!

addInfo

public void addInfo(GraphNode node)
DOCUMENT ME!

Parameters:
node - DOCUMENT ME!

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.