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

            simulator.Simulate().Wait();
        }