org.problets.lib.conceptmap.model
Class ForestModel

java.lang.Object
  extended by org.problets.lib.conceptmap.model.ForestModel
Direct Known Subclasses:
UserBuiltForestModel

public class ForestModel
extends java.lang.Object

Holds the forest.

Author:
Adrian Maries

Constructor Summary
ForestModel(java.lang.String path, java.lang.String fileName)
          Creates a ForestModel object with the data passed in text file format.
ForestModel(java.util.Vector vectorOfVectors)
          Creates a ForestModel object with the data passed in vector format.
 
Method Summary
 java.util.Vector getModelVector()
          Returns the structure of the forest in a vector of vectors of strings.
 int getNumTreeModels()
          Returns the number of tree models in the forest model.
 TreeModel getTreeModel(int index)
          Returns the tree model at the specified position in the vector of tree models.
static void main(java.lang.String[] args)
           
 void print()
          Prints the forest model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForestModel

public ForestModel(java.util.Vector vectorOfVectors)
Creates a ForestModel object with the data passed in vector format.

Parameters:
stringVectors - the vector with the data for the model

ForestModel

public ForestModel(java.lang.String path,
                   java.lang.String fileName)
Creates a ForestModel object with the data passed in text file format.

Parameters:
FileName - the file from which the data for the model is extracted
Method Detail

getTreeModel

public TreeModel getTreeModel(int index)
Returns the tree model at the specified position in the vector of tree models.

Parameters:
index - an index into the vector
Returns:
the tree model at the specified position

getNumTreeModels

public int getNumTreeModels()
Returns the number of tree models in the forest model.

Returns:
the number of tree models in the forest model

getModelVector

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

Returns:
the vector of vectors of strings containing the structure of the forest

print

public void print()
Prints the forest model.


main

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