|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.topology.viewer.LinkDetails
public class LinkDetails
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 |
|---|
public Node connectedNode1
public Node connectedNode2
public List linksForOneNode
public Color linkColor
| Constructor Detail |
|---|
public LinkDetails(Node n1,
Node n2)
| Method Detail |
|---|
public void insertLinkForNode(int linkId,
String linkType)
linkId - id of a link.linkType - type String of a link.
public void deleteLinkForNode(int linkId)
throws TopologyException
linkId - id of a link.
TopologyException - if the specified link is not found between
the node pair.public int deleteAllLinksForNode()
public Link getLink(int linkId,
String type)
linkId - id of a link.type - String type of a link.
Linkpublic List getAllLinksForNode()
List containing all the link details between the
node pair.
List of String representing all the
links between the pair.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||