public string getPath() { string device = directory.getEdgeNode(source); int port = getDevicePort(device); RouterConnection rc = new RouterConnection(); string path = rc.sendToRouter(port, source, destination, connectionId); return(""); }
public string getPath() { string device = directory.getEdgeNode(source); int port = getDevicePort(device); RouterConnection rc = new RouterConnection(); string path = rc.sendToRouter(port, source, destination, connectionId); while (!checkIfPathComplete(path)) { string lastNode = getLastPathElement(path); string nextNCC = directory.getAdjacentSubnetwork(lastNode); string adjacentSubnetworkPath = SendCallCoordinationRequest(lastNode, destination, throughput, Int32.Parse(nextNCC)); path += adjacentSubnetworkPath; } return(path); }