static void Main(string[] args) { // If arguments given in the right length handle the jenkins call if (args.Length == JenkinsHandler.CliArgs.Length) { JenkinsHandler.HandleJenkinsCall(args); return; } // Choose option Console.WriteLine(">>> Choose option: "); Console.WriteLine("1: ExecuteInstance"); Console.WriteLine("2: SendResourcesToCluster"); Console.WriteLine("3: FetchResultsFromCluster"); Console.WriteLine("4: FetchOutputFilesFromCluster"); Console.WriteLine("5: GenerateMaTiInstances"); Console.WriteLine("6: GenerateMuControlConfigs"); Console.WriteLine("7: GenerateMuSettingConfigs"); Console.WriteLine("8: ExecuteDirectory"); Console.WriteLine("0: Experimental"); char optionKey = Console.ReadKey().KeyChar; Console.WriteLine(); switch (optionKey) { case '1': { ExecuteInstance(); } break; case '2': { /* ClusterHelper.SendBinDirToCluster(); TODO skip bin dir for now - use hg clone repo instead */ ClusterHelper.SendScriptDirToCluster(); ClusterHelper.SendInstanceDirToCluster(); ClusterHelper.SendResourceDirToCluster(); } break; case '3': { ClusterHelper.FetchResultsFromCluster(); } break; case '4': { ClusterHelper.FetchOutputFilesFromCluster(); } break; case '5': { InstanceGenerators.GenerateMaTiInstances(); } break; case '6': { ConfigGenerators.GenerateRotterdamControllers(); } break; case '7': { SettingGenerator.GenerateRotterdamMark2Set(); } break; case '8': { ExecuteInstances(); } break; case '0': { Experimental(); } break; default: break; } Console.WriteLine(".Fin."); Console.ReadLine(); }
/// <summary> /// Used to test stuff. Change the interiors of the method as often as you like. Do not put anything meaningful in here. /// </summary> public static void Experimental() { // Insert a test from RAWSimO.Playground.Tests or similar calls here //SolverTests.TestSolverBasic(); //MDPLPConverter.RoundModels(Directory.GetCurrentDirectory()); //ConfigGenerators.GenerateLenaKSet(); //ConfigGenerators.GenerateRepositioningSet3(); // Choose option Console.WriteLine(">>> Choose option: "); Console.WriteLine("1: Generate phase 1 configs"); Console.WriteLine("2: Generate phase 2 settings"); char optionKey = Console.ReadKey().KeyChar; Console.WriteLine(); switch (optionKey) { case '1': { ConfigGenerators.GenerateRotterdamControllers(); } break; case '2': { ConfigGenerators.GenerateRotterdamPhase2Settings(); } break; default: break; } }