vending_stock_formal

idlestock ; Stockcash ; Cashpayingstock ; Stockcash ; Cashcredit ; Amountdroppingstock ; Stockcash ; Cashdispensing ; Productchange ; AmountreturningChangestock ; Stockcash ; Cashchange ; AmountoutOfChangestock ; Stockcash ; Cashchannel refillChange : Countchannel insert : Coinchannel cancel : Amountchannel choose : Productchannel drop : Productchannel returnChange : AmountChange: stockafteris full    cashafterholds the initial change and no sales Event: restockCondition: stockbeforeis not fullChange: stockafteris full    cashafteriscashbefore Event: collectChange: cashafteriscashbeforewithout its 100-yen coins    stockafterisstockbefore Event: changeOutCondition: cashbeforehas no 50-yen coinChange: stockafterisstockbefore    cashafteriscashbefore Event: refillChange?countCondition: cashbeforehas room forcounteventmore 50-yen coinsChange: cashafteriscashbeforewithcounteventmore 50-yen coins    stockafterisstockbefore Event: insert?coinCondition: cashbeforehas a 50-yencoinevent    cashbeforehas room for one morecoineventChange: creditafteriscoinevent    cashafteriscashbeforewithcoineventadded    stockafterisstockbefore Event: cancel!creditCondition: cashbeforecan pay backcrediteventChange: cashafteriscashbeforeafter paying backcreditevent    stockafterisstockbefore Event: insert?coinCondition: creditbeforepluscoineventis at most the limit    cashbeforehas room for one morecoineventChange: creditafteriscreditbeforepluscoinevent    cashafteriscashbeforewithcoineventadded    stockafterisstockbefore Event: choose?productCondition: stockbeforehas aproductevent    creditbeforecovers the price ofproductevent    cashbeforecan pay thechangeChange: dispensingafterisproductevent    changeafteriscreditbeforeminus the price    stockafterisstockbeforewith oneproducteventless    cashafteriscashbefore Event: drop!dispensingChange: changeafterischangebefore    stockafterisstockbefore    cashafteriscashbefore Event: returnChange!changeChange: cashafteriscashbeforeafter payingchangeevent    stockafterisstockbefore