org.problets.lib.conceptmap.model
Class TreeModel

java.lang.Object
  extended by org.problets.lib.conceptmap.model.TreeModel
Direct Known Subclasses:
UserBuiltTreeModel

public class TreeModel
extends java.lang.Object

The TreeModel holds the trees.

Author:
Eric Fernades, Adrian Maries July 2005

Constructor Summary
TreeModel(java.util.Vector contents)
          Create a TreeModel object using the data in vector format as argument.
 
Method Summary
 java.util.Vector getModelVector()
          Returns the structure of the tree in a vector of strings format.
 NodeModel getRoot()
          Returns the root of the tree model.
static void main(java.lang.String[] args)
           
 void print()
          Recursively outputs all node names to the debug console.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeModel

public TreeModel(java.util.Vector contents)
Create a TreeModel object using the data in vector format as argument.

Method Detail

getRoot

public NodeModel getRoot()
Returns the root of the tree model.

Returns:
the root of the tree model

getModelVector

public java.util.Vector getModelVector()
Returns the structure of the tree in a vector of strings format.

Returns:
the structure of the tree model in vector of strings format

print

public void print()
Recursively outputs all node names to the debug console.


main

public static void main(java.lang.String[] args)