cgl.narada.node
Class MultipleServerNodes

java.lang.Object
  extended by cgl.narada.node.MultipleServerNodes

public class MultipleServerNodes
extends Object


Constructor Summary
MultipleServerNodes(int numOfSSC, int numOfSC, int numOfC, int numOfB)
           
 
Method Summary
 void createConnections(int numOfConnections)
           
 void createNetwork()
           
 boolean determineIfAlreadyConnected(int posA, int posB)
          This method returns true only if both the nodes have valid assigned addresses and the connection had not been previously established
 int determineLevelOfConnection(int posA, int posB)
           
 void issueRequestTo(ServerNode serverNode, int port, int level)
           
static void main(String[] args)
           
 void populateLevelsInfo()
           
 void printConnectionsInfo()
           
 void printNodesInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleServerNodes

public MultipleServerNodes(int numOfSSC,
                           int numOfSC,
                           int numOfC,
                           int numOfB)
Method Detail

issueRequestTo

public void issueRequestTo(ServerNode serverNode,
                           int port,
                           int level)

createNetwork

public void createNetwork()

printNodesInfo

public void printNodesInfo()

printConnectionsInfo

public void printConnectionsInfo()

populateLevelsInfo

public void populateLevelsInfo()

createConnections

public void createConnections(int numOfConnections)

determineLevelOfConnection

public int determineLevelOfConnection(int posA,
                                      int posB)

determineIfAlreadyConnected

public boolean determineIfAlreadyConnected(int posA,
                                           int posB)
This method returns true only if both the nodes have valid assigned addresses and the connection had not been previously established


main

public static void main(String[] args)


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