예제 #1
0
 public void AddServerpool(ServerPool serverPool)
 {
     if (ServerPools == null)
     {
         ServerPools = new List <ServerPool>();
     }
     ServerPools.Add(serverPool);
 }
예제 #2
0
        private void SendToServerPool(Job job)
        {
            ServerPool serverPool = ChooseServerpool();

            double departureTime = GetTime + job.ServiceTime;

            job.DepartureTime = departureTime;

            serverPool.HandleArrival(job);
        }