源码简介: |
模拟实现银行业务调度系统逻辑,具体需求如下:1、银行内有6个业务窗口,1 - 4号窗口为普通窗口,5号窗口为快速窗口,6号窗口为VIP窗口。 2、有三种对应类型的客户:VIP客户,普通客户,快速客户(办理如交水电费、电话费之类业务的客户)。 3、异步随机生成各种类型的客户,生成各类型用户的概率比例为: VIP客户:普通客户:快速客户 = 1 :6 :3。4、客户办理业务所需时间有最大值和最小值,在该范围内随机设定每个VIP客户以及普通客户办理业务所需的时间,快速客户办理业务所需时间为最小值(提示:办理业务的过程可通过线程Sleep的方式模拟)。 5、各类型客户在其对应窗口按顺序依次办理业务。 6、当VIP(6号)窗口和快速业务(5号)窗口没有客户等待办理业务的时候,这两个窗口可以处理普通客户的业务,而一旦有对应的客户等待办理业务的时候,则优先处理对应客户的业务。 7、随机生成客户时间间隔以及业务办理时间最大值和最小值自定,可以设置。 8、不要求实现GUI,只考虑系统逻辑实现,可通过Log方式展现程序运行结果。-Simulation realize banking scheduling system logic, specific requirements as follows:1, bank has six business window, 1-4 window for ordinary window, window no.5 for fast window, 6 window for VIP window.2, there are three corresponding types of customers: VIP customers, ordinary customers, quick customer (deal with such as electricity, telephone business into the customer).3, asynchronous randomly generated various types of customers, the probability of each type of user generated ratio for:The VIP customer: ordinary customers: fast customer = 1:6:3.4, customers are required to conduct business maximum and minimum time in this range, VIP customers and random set each ordinary customers the time required to conduct business, quick customer conduction business needed time for minimum (hint: conduction business process can Sleep through threads way of simulation).5, various types of clients in their corresponding window to transact business according to the order.6, when
|