public Table(int id) { try { chairs = Comunes.get_random(2, 11, id); this.id = id; } catch (Exception e) { } }
public Customers(int id_wait) { try { amount_of_people = Comunes.get_random(1, 11); id_wait_ticket = id_wait; } catch (Exception e) { } }
public Restaurant() { customers = new ConcurrentQueue <Customers>(); diners = new List <Customers>(); tables = new List <Table>(); int num_of_tables = Comunes.get_random(5, 10); for (int j = 1; j < num_of_tables; j++) { tables.Add(new Table(j)); } tables = tables.OrderBy(x => x.Chairs).ToList(); }
private int noap; //number of attended people public Table() { chairs = Comunes.get_random(2, 11); }