MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / States

Interface States

StateDesignPattern/VendingMachineStates/States.java:9–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import java.util.List;
8
9public interface States {
10
11
12 public void clickOnInsertCoinButton(VendingMachine machine) throws Exception;
13
14 public void insertCoin(VendingMachine machine, Coin coin) throws Exception;
15
16 public void clickOnStartProductSelectionButton(VendingMachine machine) throws Exception;
17
18 public int getChange(int returnChangeMoney) throws Exception;
19
20 public void chooseProduct(VendingMachine machine, int codeNumber) throws Exception;
21
22 public List<Coin> refundFullMoney(VendingMachine machine) throws Exception;
23
24
25 Item dispenseProduct(VendingMachine machine, int codeNumber) throws Exception;
26}

Callers 4

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Implementers 4

IdleStateStateDesignPattern/VendingMachineState
DispenseStateStateDesignPattern/VendingMachineState
SelectionStateStateDesignPattern/VendingMachineState
HasMoneyStateStateDesignPattern/VendingMachineState

Calls

no outgoing calls

Tested by

no test coverage detected