Example #1
0
 public Process(int userCount)
 {
     sa = new SpecAllocate(userCount);
     allocatedUsers = sa.users;
 }
Example #2
0
        static void Main(string[] args)
        {
            //Random rnd = new Random();
            //Random rnd1 = new Random();
            //for (int i = 0; i < 10; i++)
            //{
            //    Console.WriteLine(rnd.NextDouble());
            //}

            //for (int i = 0; i < 10; i++)
            //{
            //    Console.WriteLine(rnd.NextDouble());
            //}
            SpecAllocate sa = new SpecAllocate(5);
            User u ;
            int m = 0;
            u = sa.getMaxBenUser(sa.users);
            m=u.getBestResource();
            sa.basicAllocate(u,m);
            int[] f;
            f = sa.conflicts.unconfilictUsersFor(u);
            Console.ReadLine();
        }