feat: update structure

This commit is contained in:
2024-01-22 14:27:40 +08:00
parent 7836c9185c
commit 3544a28a2e
559 changed files with 120846 additions and 4102 deletions

View File

@@ -0,0 +1,23 @@
public class JoinCounterQueueEvent extends Event {
private Customer customer;
private ServiceCounter counter;
public JoinCounterQueueEvent(double time, Customer customer, ServiceCounter counter) {
super(time);
this.customer = customer;
this.counter = counter;
}
@Override
public Event[] simulate() {
this.counter.joinQueue(customer);
return new Event[] {};
}
@Override
public String toString() {
return String.format("%s: %s joined counter queue (at %s)",
super.toString(),
this.customer, this.counter);
}
}