|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.lib.conceptmap.model.NodeModel
org.problets.lib.conceptmap.model.userbuilt.UserBuiltNodeModel
public class UserBuiltNodeModel
Derived from NodeModel. Written in order to allow the user to create user-built link models.
Constructor Summary | |
---|---|
UserBuiltNodeModel(UserBuiltNodeModel parent,
java.util.Vector contents)
Creates a UserBuiltNodeModel object using the parent node and the data for the rest of the tree passed in a vector of strings as arguments. |
Method Summary | |
---|---|
java.lang.String |
getFeedback(java.lang.String targetNode)
Returns the feedback the user gets when connecting the node passed as argument to the current node. |
UserBuiltNodeModel |
getShallowCopy()
Returns a shallow copy (a copy of the ) of this node model. |
static void |
main(java.lang.String[] args)
|
void |
removeChildLink(java.lang.String childNodeName)
Removes the child link which connects this node to the node whose name is passed by argument. |
void |
removeChildNode(java.lang.String childNodeName)
Removes the child node at the specified index. |
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.NodeModel |
---|
addLink, addNode, connect2StatusProvider, getAreChildrenAnd, getChild, getChildLink, getChildLinkTo, getDescription, getIndex, getModelVector, getName, getNumChildren, getParent, getPercentCompletion, print, setAreChildernAndFlag, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserBuiltNodeModel(UserBuiltNodeModel parent, java.util.Vector contents)
parent
- the parent nodecontents
- the vector holding the data for the rest of the treeMethod Detail |
---|
public UserBuiltNodeModel getShallowCopy()
public java.lang.String getFeedback(java.lang.String targetNode)
targetNode
- the target node in the group of two nodes
connected to each other
public void removeChildNode(java.lang.String childNodeName)
index
- an index into the vectorpublic void removeChildLink(java.lang.String childNodeName)
childNodeName
- the name of the node whose link to
its parent will be removedpublic void updateTutor(boolean[][] userMatrix, boolean[][] actualMatrix, java.util.Vector matrixDifferenceVector, java.util.Vector labelsVector)
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 matrixpublic static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |