コード例 #1
0
        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("");
        }
コード例 #2
0
ファイル: CallRequest.cs プロジェクト: pkorpal/NCCfixed
        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);
        }