|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.model.ForestModel
public class ForestModel
Holds the forest.
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 |
---|
public ForestModel(java.util.Vector vectorOfVectors)
stringVectors
- the vector with the data for the modelpublic ForestModel(java.lang.String path, java.lang.String fileName)
FileName
- the file from which the data for the model is extractedMethod Detail |
---|
public TreeModel getTreeModel(int index)
index
- an index into the vector
public int getNumTreeModels()
public java.util.Vector getModelVector()
public void print()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |