|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.tutor.ForestTutor
public class ForestTutor
This class checks the student's answer and decides which aspectsof the student's answer are correct or wrong.
Constructor Summary | |
---|---|
ForestTutor(ForestModel actualForestModel,
UserBuiltForestModel inUserForestModel)
Creates the connection matrix to assist in checking the student's answers. |
Method Summary | |
---|---|
boolean |
isLinkCorrect(java.lang.String parent,
java.lang.String child)
Returns true if the first name passed as argument is the actual parent of the second name passed as argument. |
boolean |
isModelCorrect()
Returns true if the student forest model is correct, false otherwise. |
boolean |
isParentCorrect(java.lang.String name)
Returns true if the user-defined parent is correct, false otherwise. |
static void |
main(java.lang.String[] args)
|
void |
print(boolean[][] connectionMatrix)
Prints the connection matrix. |
void |
update()
Updates the connection matrix of the user-built forest and the vector of MatrixDifference objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForestTutor(ForestModel actualForestModel, UserBuiltForestModel inUserForestModel)
actualForestModel
- the model of the correct forestuserForestModel
- the model of the user-built forestMethod Detail |
---|
public boolean isParentCorrect(java.lang.String name)
name
- the name of the node whose correctness is returned
public boolean isLinkCorrect(java.lang.String parent, java.lang.String child)
parent
- the name of parent nodechild
- the name of the chilf node
public boolean isModelCorrect()
public void update()
public void print(boolean[][] connectionMatrix)
connectionMatrix
- the connection matrix to be printedpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |