Exemplo n.º 1
0
        private void run(string[] args)
        {
            nds           = new NDS(File.OpenRead(args[0]));
            scriptArchive = new MainArchive(nds.FileSystem.OpenFile("jpn/spt.bin"));

            SPT    spt      = new SPT(scriptArchive.OpenFile(int.Parse(args[1])));
            string contents = spt.OpenSection(int.Parse(args[2]));
        }
Exemplo n.º 2
0
        static public void applySecMethod(Model model, ExcelFile excelFile, string methodChoice)
        {
            switch (methodChoice)
            {
            case "--GRAS":
                GRAS methodGRAS = new GRAS(1f, model, excelFile);
                methodGRAS.apply();
                break;

            case "--SPT":
                SPT methodSPT = new SPT(model, excelFile);
                methodSPT.apply();
                break;

            case "--LPT":
                LPT methodLPT = new LPT(model, excelFile);
                methodLPT.apply();
                break;

            case "--EDD":
                EDD methodEDD = new EDD(model, excelFile);
                methodEDD.apply();
                break;

            case "--CR":
                CR methodCR = new CR(model, excelFile);
                methodCR.apply();
                break;

            case "--SES":
                SES methodSES = new SES(model, excelFile);
                methodSES.apply();
                break;

            case "--SLACK":
                SES methodSLACK = new SES(model, excelFile);
                methodSLACK.apply();
                break;

            case "A":
                MyConsole.displayError("Aborting operation...\n");
                break;

            default:
            {
                MyConsole.displayError("Input invalid, applying GRAS anyway... \n");
                GRAS methodDefault = new GRAS(1f, model, excelFile);
                methodDefault.apply();
            }
            break;
            }
        }
            public void Register_Edges(IEnumerable <Source> S, Receiver_Bank R)
            {
                List <Hare.Geometry.Point> HS = new List <Hare.Geometry.Point>();
                List <Hare.Geometry.Point> HR = new List <Hare.Geometry.Point>();

                foreach (Source SPT in S)
                {
                    HS.Add(SPT.Origin());
                }
                foreach (Point RPT in R.Origins())
                {
                    HR.Add(RPT);
                }

                Register_Edges(HS, HR);
            }