feat: move everything to single folder

This commit is contained in:
Yadunand Prem
2022-11-05 10:28:46 +08:00
parent 0eb6cd0b30
commit 44c87f3500
315 changed files with 48612 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
class JoinShopQueueEvent extends Event {
private Customer customer;
private Shop shop;
public JoinShopQueueEvent(Customer customer, Shop shop) {
super(customer.getArrivalTIme());
this.customer = customer;
this.shop = shop;
}
@Override
public Event[] simulate() {
this.shop.joinQueue(customer);
return new Event[] {};
}
@Override
public String toString() {
return String.format("%s: %s joined shop queue %s",
super.toString(),
this.customer, this.shop);
}
}