petshop-00-model.spp
petshop/cart/petshop-00-model.spp
Download original file · Petstore source contents
1domain petshop;23Role CartLine {4Buyer;5Goods;6int quantity;7}89Role Cart {10Buyer;11CartLine[] lines;12}1314Contract CartAdditionAgreement {15Buyer buyer;16Cart cart;17Goods goods;18int quantity;19Receipt receipt;20}2122Contract CartQuantityAgreement {23Buyer buyer;24Cart cart;25Goods goods;26int quantity;27Receipt receipt;28}2930Contract CartRemovalAgreement {31Buyer buyer;32Cart cart;33Goods goods;34Receipt receipt;35}3637Contract CartClearingAgreement {38Buyer;39Cart;40Receipt;41}