cgl.narada.topology.viewer
Class LinkDetails

java.lang.Object
  extended by cgl.narada.topology.viewer.LinkDetails

public class LinkDetails
extends Object

This class manages all the links between a pair of nodes.


Field Summary
 Node connectedNode1
           
 Node connectedNode2
           
 Color linkColor
           
 List linksForOneNode
           
 
Constructor Summary
LinkDetails(Node n1, Node n2)
          Only constructor.
 
Method Summary
 int deleteAllLinksForNode()
          Deletes all the links present between the node pair.
 void deleteLinkForNode(int linkId)
          Deletes a link between the node pair.
 List getAllLinksForNode()
          Returns List containing all the link details between the node pair.
 Link getLink(int linkId, String type)
          Gets a particular link between the node pair.
 void insertLinkForNode(int linkId, String linkType)
          Inserts a link between the node pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectedNode1

public Node connectedNode1

connectedNode2

public Node connectedNode2

linksForOneNode

public List linksForOneNode

linkColor

public Color linkColor
Constructor Detail

LinkDetails

public LinkDetails(Node n1,
                   Node n2)
Only constructor. Initializes the node pair.

Method Detail

insertLinkForNode

public void insertLinkForNode(int linkId,
                              String linkType)
Inserts a link between the node pair.

Parameters:
linkId - id of a link.
linkType - type String of a link.

deleteLinkForNode

public void deleteLinkForNode(int linkId)
                       throws TopologyException
Deletes a link between the node pair.

Parameters:
linkId - id of a link.
Throws:
TopologyException - if the specified link is not found between the node pair.

deleteAllLinksForNode

public int deleteAllLinksForNode()
Deletes all the links present between the node pair.

Returns:
number of links deleted.

getLink

public Link getLink(int linkId,
                    String type)
Gets a particular link between the node pair.

Parameters:
linkId - id of a link.
type - String type of a link.
Returns:
Link

getAllLinksForNode

public List getAllLinksForNode()
Returns List containing all the link details between the node pair.

Returns:
List of String representing all the links between the pair.


For comments and suggestions please send e-mail to The NaradaBrokering Project