S++Core systems, human-reviewable
DEMO SOURCE · SPP / APP / PHYRead the book

petshop-00-model.spp

petshop/cart/petshop-00-model.spp

Download original file · Petstore source contents

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