org.problets.lib.conceptmap.model.userbuilt
Class UserBuiltTreeModel
java.lang.Object
org.problets.lib.conceptmap.model.TreeModel
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 treeactualMatrix
- the connection matrix of the actual treematrixDifferenceVector
- the vector of MatrixDifference objectslabelsVector
- the vector with the order of the nodes in the
connection matrix
main
public static void main(java.lang.String[] args)