static void RunOneSimulation(String path, string schedulerName) { var ps = new ProblemSetting(); var jobs = new List<Job>(); FileUtil.ReadData(path, ref ps, ref jobs); IScheduler scheduler = SchedulerFactory.GetScheduler(schedulerName, ps); var simulator = new Simulator(scheduler, ps, jobs); var simulationresult = simulator.Simulate(); Console.WriteLine(simulationresult); }
static void Main(string[] args) { Simulator simulator = new Simulator(); simulator.Simulate().Wait(); }