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; } }