|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.topology.viewer.Node
cgl.narada.topology.viewer.VirtualNode
public class VirtualNode
This class represents a virtual node (BIG Broker node) which consists of all super super clusetrs. This virtual node is a BIG invisible circle on the screen which contains all types of nodes and information. It separated node management system from the main tree.
| Field Summary | |
|---|---|
List |
superSuperClusters
|
| Fields inherited from class cgl.narada.topology.viewer.Node |
|---|
clients, INVALID_VALUE, nodeId, nodeLocation, parentClusterId, parentSClusterId, parentSSClusterId |
| Constructor Summary | |
|---|---|
VirtualNode()
Only constructor. |
|
| Method Summary | |
|---|---|
void |
deleteAllSuperSuperClusters(List nodesToBeDeleted)
Deletes all the super super clusters present in the system cluster. |
void |
deleteSuperSuperCluster(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId,
List nodesToBeDeleted)
Deletes an existing super super cluster inside the virtual node. |
void |
drawVirtualNode(Graphics g,
int limitX1,
int limitY1,
int limitX2,
int limitY2)
Draws the virtual node only if its part is visible on the screen. |
String |
getAllCounts()
Returns a String containing information about counts
of individual components. |
Node |
getNodeAtParticularCoordinates(int x,
int y)
Finds out super super cluster nearest to the specified coordinates. |
Node |
getParticularNode(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId)
Returns a node in the system with specified super super cluster, super cluster, cluster and node id. |
void |
insertSuperSuperCluster(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId)
Add a new super super cluster to the list. |
void |
repositionSuperSuperClusters()
Gets the new Position objects and assign then to all the
super super clusters inside the system. |
| Methods inherited from class cgl.narada.topology.viewer.Node |
|---|
addClient, addTopic, canFitOnPanel, deleteAllClients, deleteAllTopics, deleteClient, deleteTopic, drawNode, getAllClients, getClient, getNodeAddress |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public List superSuperClusters
| Constructor Detail |
|---|
public VirtualNode()
| Method Detail |
|---|
public void insertSuperSuperCluster(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId)
throws TopologyException
superSuperClusterId - id of a super super cluster.superClusterId - id of a super cluster.clusterId - id of a cluster.nodeId - id of a node.
TopologyException - if due to some problem. super super cluster is
found null during insertion of a node
public void deleteSuperSuperCluster(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId,
List nodesToBeDeleted)
throws TopologyException
superSuperClusterId - id of a super super cluster.superClusterId - id of a super cluster.clusterId - id of a cluster.nodeId - id of a node.nodesToBeDeleted - a List which will contain node
addresses of the nodes being deleted.
TopologyException - if no such super super cluster id found while
node deletion.public void deleteAllSuperSuperClusters(List nodesToBeDeleted)
nodesToBeDeleted - a List which will contain node
addresses of the nodes being deleted.
public Node getNodeAtParticularCoordinates(int x,
int y)
x - X-coordinatey - Y-coordinate
Node nearest to specified coordinates.
public void drawVirtualNode(Graphics g,
int limitX1,
int limitY1,
int limitX2,
int limitY2)
g - Graphics object for image drawing.limitX1 - lower limit for X-coordinatelimitY1 - lower limit for Y-coordinatelimitX2 - upper limit for X-coordinatelimitY2 - upper limit for Y-coordinatepublic String getAllCounts()
String containing information about counts
of individual components.
public Node getParticularNode(int superSuperClusterId,
int superClusterId,
int clusterId,
int nodeId)
superSuperClusterId - id of a super super cluster.superClusterId - id of a super cluster.clusterId - id of a cluster.nodeId - id of a node.
Nodepublic void repositionSuperSuperClusters()
Position objects and assign then to all the
super super clusters inside the system. Recurdively calls
repositionNodes() for each of the super super cluster.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||