org.problets.lib.conceptmap.model.userbuilt
Class UserBuiltTreeModel

java.lang.Object
  extended by org.problets.lib.conceptmap.model.TreeModel
      extended by org.problets.lib.conceptmap.model.userbuilt.UserBuiltTreeModel

public class UserBuiltTreeModel
extends TreeModel

Derived from TreeModel.

Author:
Adrian Maries

Constructor Summary
UserBuiltTreeModel(java.util.Vector contents)
          Create a UserBuiltTreeModel object using the data in vector format as argument.
 
Method Summary
static void main(java.lang.String[] args)
           
 void updateTutor(boolean[][] userMatrix, boolean[][] actualMatrix, java.util.Vector matrixDifferenceVector, java.util.Vector labelsVector)
          Updates the connection matrix of the user-built tree and the vector of MatrixDifference objects in the forest tutor.
 
Methods inherited from class org.problets.lib.conceptmap.model.TreeModel
getModelVector, getRoot, print
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserBuiltTreeModel

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

Parameters:
contents - the data for the tree in vector format
Method Detail

updateTutor

public void updateTutor(boolean[][] userMatrix,
                        boolean[][] actualMatrix,
                        java.util.Vector matrixDifferenceVector,
                        java.util.Vector labelsVector)
Updates the connection matrix of the user-built tree and the vector of MatrixDifference objects in the forest tutor.

Parameters:
userMatrix - the connection matrix of the user-built tree
actualMatrix - the connection matrix of the actual tree
matrixDifferenceVector - the vector of MatrixDifference objects
labelsVector - the vector with the order of the nodes in the connection matrix

main

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