vending_machine_formal

vmIdleavailableProducts ; ProductSetvmCoinsInsertedavailableProducts ; ProductSetcoins ; CoinSetvmWaitingChoosingavailableProducts ; ProductSetcoins ; CoinSetvmDroppingavailableProducts ; ProductSetdispensing ; Productchannel choose : Productchannel drop : Productchannel insert : Coinchannel showAvailable : ProductSetchannel showPurchasable : ProductSetChange: availableProductsafterare products initially in the vending machine Event: showAvailable!availableProductsChange: availableProductsafterisavailableProductsevent Event: insert?coinChange: coinsafteris the set ofcoinevent    availableProductsafterisavailableProductsbefore Event: showPurchasable?purchasableProductsChange: availableProductsafterisavailableProductsbefore    coinsafteriscoinsbefore Event: insert?coinChange: coinsafteriscoinsbeforewithcoineventadded    availableProductsafterisavailableProductsbefore Event: choose?productCondition: availableProductsbeforecontainsproducteventChange: dispensingafterisproductevent Event: drop?productCondition: producteventisdispensingbeforeChange: availableProductsafterisavailableProductsbeforeminusproductevent