示例#1
0
文件: Program.cs 项目: nlebeck/CRA
        static void Main(string[] args)
        {
            var client    = new CRAClientLibrary();
            int chunkSize = 10 * 1024 * 1024;

            client.Reset();

            client.DefineVertex("bandwidthtestvertex", () => new BandwidthTestVertex());

            client.InstantiateVertex("crainst01", "bwvertex1", "bandwidthtestvertex", chunkSize);
            client.InstantiateVertex("crainst02", "bwvertex2", "bandwidthtestvertex", chunkSize);
            //client.InstantiateVertex("crainst03", "bwvertex3", "bandwidthtestvertex", chunkSize);

            client.Connect("bwvertex1", "output1", "bwvertex2", "input1");

            /*
             * client.Connect("bwvertex1", "output2", "bwvertex2", "input2");
             * client.Connect("bwvertex1", "output3", "bwvertex2", "input3");
             * client.Connect("bwvertex1", "output4", "bwvertex2", "input4");
             * client.Connect("bwvertex1", "output5", "bwvertex2", "input5");
             * client.Connect("bwvertex1", "output6", "bwvertex2", "input6");
             * client.Connect("bwvertex1", "output7", "bwvertex2", "input7");
             * client.Connect("bwvertex1", "output8", "bwvertex2", "input8");
             * client.Connect("bwvertex1", "output9", "bwvertex2", "input9");
             * client.Connect("bwvertex1", "output10", "bwvertex2", "input10");
             * client.Connect("bwvertex1", "output11", "bwvertex2", "input11");
             * client.Connect("bwvertex1", "output12", "bwvertex2", "input12");
             *
             * client.Connect("bwvertex1", "output13", "bwvertex2", "input13");
             * client.Connect("bwvertex1", "output14", "bwvertex2", "input14");
             * client.Connect("bwvertex1", "output15", "bwvertex2", "input15");
             * client.Connect("bwvertex1", "output16", "bwvertex2", "input16");*/

            Console.ReadLine();
        }
示例#2
0
文件: Program.cs 项目: nlebeck/CRA
        static void Main(string[] args)
        {
            var client = new CRAClientLibrary();

            client.Reset();

            client.DefineVertex("fusableconnectionpairvertex", () => new FusableConnectionPairVertex());

            client.InstantiateVertex("crainst01", "fvertex1", "fusableconnectionpairvertex", null);
            client.InstantiateVertex("crainst01", "fvertex2", "fusableconnectionpairvertex", null);

            client.Connect("fvertex1", "output", "fvertex2", "input");

            Console.ReadLine();
        }