Files
java-interview-lab/food-delivery/output/08-cancel-reject.txt
T

10 lines
590 B
Plaintext

Cancel and reject give back stock, kitchen slot and rider
=========================================================
start : stock b1=10, kitchen slots used=0, P1=AVAILABLE
placed 3 x b1 : stock b1=7, kitchen slots used=0, P1=AVAILABLE
cancelled while PLACED : stock b1=10, kitchen slots used=0, P1=AVAILABLE
placed 4, accepted : stock b1=6, kitchen slots used=1, P1=BUSY (rider P1)
cancelled while ACCEPTED : stock b1=10, kitchen slots used=0, P1=AVAILABLE
placed 2, rejected : stock b1=10, kitchen slots used=0, P1=AVAILABLE