org.problets.lib.conceptmap.model
Class LinkModel

java.lang.Object
  extended by org.problets.lib.conceptmap.model.LinkModel
Direct Known Subclasses:
UserBuiltLinkModel

public class LinkModel
extends java.lang.Object

The LinkModel class is instantiated for each connection between nodes. Since painting (and possibly other operations) are needed for links between nodes, this separate class is used. Each node has a vector of links to all its children.

Author:
Eric Fernandes December 2003

Constructor Summary
LinkModel(NodeModel inSource, NodeModel inTarget)
          Creates a LinkModel object using the originating and destination nodes as arguments.
 
Method Summary
 NodeModel getSource()
          Returns the source node for this link.
 NodeModel getTarget()
          Returns the target node for this link.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkModel

public LinkModel(NodeModel inSource,
                 NodeModel inTarget)
Creates a LinkModel object using the originating and destination nodes as arguments.

Parameters:
inSource - the originating node for this link
inTarget - the destination node for this link
Method Detail

getSource

public NodeModel getSource()
Returns the source node for this link.

Returns:
the source (originating) node

getTarget

public NodeModel getTarget()
Returns the target node for this link.

Returns:
the target (destination) node

main

public static void main(java.lang.String[] args)