Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Simulator simulator = new Simulator();

            simulator.Simulate().Wait();
        }