Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.8 KB

Interfaces.md

File metadata and controls

34 lines (23 loc) · 1.8 KB

Vendomagic Control Interfaces

Description

This project provides fictitious interfaces to control an fictitious vending machine "Vendomagic Model 9302GX". This machine offers a display, a coin acceptor, a coin box with three payout tubes for three different types of coins, buttons to select one out of 72 products, and a product dispenser. Coins ejected from the payout tubes will be placed in a coin return.

For the coin box, the display and the product dispenser, the code you write will get access to implementations of these interfaces to be able to control the machine.

The interfaces for the coin acceptor and the product selector must be implemented by the code you write. The code you write will be called by the vending machine hardware via these interfaces.

For details see the Javadoc of the Java version of the interfaces:

Feature Interface Type
accept coins CoinAcceptor must be provided
eject coins CoinBox must be used
select product ProductSelector must be provided
dispense product ProductDispenser must be used
display text Display must be used

Reference

See How Does Coin Vending Machine Mechanism Work