org.problets.lib.conceptmap.tutor
Class MatrixDifference

java.lang.Object
  extended by org.problets.lib.conceptmap.tutor.MatrixDifference

public class MatrixDifference
extends java.lang.Object

Compares the actual and user-built forests and generates explanationsfor the differences between the two.


Constructor Summary
MatrixDifference(java.lang.String inName, java.lang.String inActualParent, java.lang.String inUserParent)
          Creates a MatrixDifference object using the name of the node, the name of the parent in the user-built tree and the name of the parent in the correct tree as arguments.
 
Method Summary
 java.lang.String getActualParent()
          Returns the name of the parent node in the correct tree.
 java.lang.String getName()
          Returns the name of the node.
 java.lang.String getUserParent()
          Returns the name of the parent node in the user-built tree.
 boolean isParentCorrect()
          Returns true if the user-defined parent is the same as the actual parent (correct), false otherwise.
static void main(java.lang.String[] args)
           
 void setUserParent(java.lang.String inUserParent)
          Sets the name of the parent node in the user-built tree.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixDifference

public MatrixDifference(java.lang.String inName,
                        java.lang.String inActualParent,
                        java.lang.String inUserParent)
Creates a MatrixDifference object using the name of the node, the name of the parent in the user-built tree and the name of the parent in the correct tree as arguments.

Parameters:
inName - the name of the node
inActualParent - the name of the node's parent in the correct tree
inUserParent - the name of the node's parent in the user-built tree
Method Detail

getName

public java.lang.String getName()
Returns the name of the node.

Returns:
the name of the node

getActualParent

public java.lang.String getActualParent()
Returns the name of the parent node in the correct tree.

Returns:
the name of the node's parent in the correct tree

getUserParent

public java.lang.String getUserParent()
Returns the name of the parent node in the user-built tree.

Returns:
the name of the node's parent in the user-built tree

isParentCorrect

public boolean isParentCorrect()
Returns true if the user-defined parent is the same as the actual parent (correct), false otherwise.

Returns:
true if the user-defined parent is correct, false otherwise

setUserParent

public void setUserParent(java.lang.String inUserParent)
Sets the name of the parent node in the user-built tree.

Parameters:
inUserParent - the name of the node's parent in the user-built tree

main

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