|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.problets.lib.conceptmap.tutor.MatrixDifference
public class MatrixDifference
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 |
|---|
public MatrixDifference(java.lang.String inName,
java.lang.String inActualParent,
java.lang.String inUserParent)
inName - the name of the nodeinActualParent - the name of the node's parent in the correct treeinUserParent - the name of the node's parent in the user-built tree| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getActualParent()
public java.lang.String getUserParent()
public boolean isParentCorrect()
public void setUserParent(java.lang.String inUserParent)
inUserParent - the name of the node's parent in the user-built treepublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||