org.problets.lib.conceptmap.model.userbuilt
Class UserBuiltLinkModel
java.lang.Object
org.problets.lib.conceptmap.model.LinkModel
org.problets.lib.conceptmap.model.userbuilt.UserBuiltLinkModel
public class UserBuiltLinkModel
- extends LinkModel
Derived from LinkModel. Adds to the functionality of a
link model in order to handle a user-built link model. User-built
link models have an extra flag, isCorrect, which enables them to
give feedback to the user (by being drawn red for incorrect and
green for correct)
- Author:
- Adrian Maries
Method Summary |
boolean |
getIsCorrect()
Returns the status of the flag which controls this link's
correctness. |
static void |
main(java.lang.String[] args)
|
void |
setIsCorrect(boolean inIsCorrect)
Sets the flag which controls this link's correctness. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserBuiltLinkModel
public UserBuiltLinkModel(UserBuiltNodeModel source,
UserBuiltNodeModel target)
- Creates a UserBuiltLinkModel object using the source and target node
models as arguments.
- Parameters:
source
- the source (originating) node for this linktarget
- the target (destinatiuon) node for this link
getIsCorrect
public boolean getIsCorrect()
- Returns the status of the flag which controls this link's
correctness.
- Returns:
- true if the link is correct, false otherwise
setIsCorrect
public void setIsCorrect(boolean inIsCorrect)
- Sets the flag which controls this link's correctness.
- Parameters:
inIsCorrect
- true if the link is correct, false otherwise
main
public static void main(java.lang.String[] args)