public override bool CanService(Client c) { if (c.getNumItems() > maxItems) { return false; } if (this.queue.GetSize() >= maxQueueSize) { return false; } return true; }
public override bool AcceptClient(Client c) { foreach (ServicePoint s in this.service_points) { if (c.getNumItems() > s.getMaxItems()) { return false; } } if (this.IsFull() && this.maxClients != -1) { return false; } return true; }
public virtual bool CanService(Client c) { if (c.getNumItems() > Configs.MAX_SP_ITEMS) { return false; } if (this.queue.GetSize() >= Configs.MAX_CLIENTS_PER_CASH) { return false; } return true; }