org.problets.lib.conceptmap.model.userbuilt
Class UserBuiltLinkModel

java.lang.Object
  extended by org.problets.lib.conceptmap.model.LinkModel
      extended by 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

Constructor Summary
UserBuiltLinkModel(UserBuiltNodeModel source, UserBuiltNodeModel target)
          Creates a UserBuiltLinkModel object using the source and target node models as arguments.
 
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 org.problets.lib.conceptmap.model.LinkModel
getSource, getTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 link
target - the target (destinatiuon) node for this link
Method Detail

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)