Esempio n. 1
0
        private void TestData1()
        {
            int[][] testint = new int[11][];
            testint[0] = new int[] { 10 };
            for (int i = 1; i < 11; i++)
            {
                testint[i] = new int[4];
            }
            testint[1][0] = 1;
            testint[2][1] = 1;
            testint[3][2] = 1;
            testint[4][3] = 1;

            testint[5][0] = 5;
            testint[6][1] = 5;
            testint[7][2] = 5;
            testint[8][3] = 5;

            testint[9][0] = 1;
            testint[9][1] = 1;
            testint[9][2] = 1;
            testint[9][3] = 1;

            testint[10][0] = 5;
            testint[10][1] = 5;
            testint[10][2] = 5;
            testint[10][3] = 5;
            IDT.setIntArgs(testint);
        }
        public void SetupCommandCenters(bool InitialLoggingState)
        {
            if (SimMethods.Count > 0)
            {
                CC = new CommandCenter[((int)InvokeDictionaryMethod(13, new object[0]))];
                for (int i = 0; i < CC.Length; i++)
                {
                    CC[i] = new CommandCenter(IDT, "" + CommandCenterCount, InitialLoggingState, this);
                    CommandCenterCount++;
                    SubCC(CC[i]);
                    int     temp       = (int)IDT.getItem(3, 0, 0);
                    int[][] CommandSig = (int[][])InvokeDictionaryMethod(1, new object[0]);
                    IDT.setIntArgs(CommandSig);
                    CC[i].GetArrays();
                    CC[i].CreateClustersFromTemplate1();
                    int[][] DataSig = new int[1][];
                    DataSig[0] = (int[])InvokeDictionaryMethod(2, new object[0]);
                    IDT.setIntArgs(DataSig);
                    CC[i].GetArrays();
                    CC[i].MakeNodeClusterGetArrays();
                    CC[i].SetBounds((int[])InvokeDictionaryMethod(12, new object[0]));

                    if (RecalculateFlag)
                    {
                        CalculateCombinations(temp, DataSig);
                    }
                    CC[i].GenerateNodes(UntrimmedCombinations);
                }

                GC.Collect();
                GC.WaitForPendingFinalizers();
                UILog(this, CC.ToString());
            }
        }