SClass Diagram
2015-12-28 02:25:10 0 举报
为你推荐
查看更多
SClassDiagram是一种用于描述软件系统的类图,它展示了系统中的类、接口、关联关系、继承关系等元素以及它们之间的交互。在SClassDiagram中,每个类通常由一个矩形表示,类名写在矩形内部上方,属性和方法则写在下方。类之间的关系包括关联(用实线连接两个类)、聚合(用空心菱形连接两个类)和组合(用实心菱形连接两个类)。继承关系用箭头表示,箭头指向父类。接口用圆形表示,接口名称写在圆形内部上方,方法则写在下方。通过SClassDiagram,开发人员可以更好地理解系统的结构,从而更容易地进行设计和编程。
作者其他创作
大纲/内容
ShoppingCarDao
ArtworkDao
+displayArtwork(Artist artist):List +displayAllArtwork():List +getArtworkById(Long id):Artwork +addArtwork(Artwork artwork):Long +updateArtwork(Artwork artwork):Long +deleteArtwork(Artwork artwork):void +SearchArtwork(String key):List
《Interface》UserService
+userDao:UserDao +editorDao:EditorDao+uncheckedArtistDao:UncheckedArtistDao
+register(User user):void +login(User modeluser):User +editorlogin(Editor modeleditor):Editor+updateUser(User modeluser):void +applyforartist(UncheckedArtist ua):void +getUserbyId(Long id):User +getUserbyUsername(String username):User
Purchase_CustomizeController
operateProductService:OperateProductService userService:UserService
ShoppingCar
-id:Long-userid:Long-artwork:Artwork -quantity:int-price:double - totalprice:double
+getter()+setter()
PurchaseOrderDao
OrderItemDao
《Interface》OperateProductService
+artworkDao:ArtworkDao +orderitemDao:OrderItemDao +purchaseorderDao:PurchaseOrderDao +shoppingcarDao:ShoppingCarDao+shopDao:ShopDao +shipmentDao:ShipmentDao +paymentDao:PaymentDao +artistDao:ArtistDao
ShopDao
+getArtworkByShopID(Long id):List +addArtworkInShop(Shop shop item):void +deleteArtworkInShop(Shop shop item):void+addShop(Shop shop):Long
User
-id:Long#userName:String #password:String #email:String#name:String#gender:Integer #birthday:String#tel:String#address:String#balance:Double #state:Integer
+getter+setter
PurchaseOrder
-id:Long\t-userid:Long-artistid: Long-orderDate:Date -shipmentid:Long -payments:Set-orderitems:Set
ShipmentDao
+addShipment(Shipment shipment):Long
Shipment
-id:Long-address:String- begingtime:String- state:Integer-personname:String - tel:String
OrderItem
-id:Long-artwork:Artwork -orderid:Long -artwork:Artwork
Payment
《Interface》UserDao
Shop
-id:Long- artistshopid:Long-artwork:Artwork
Artwork
-id:Long -name:String -category:Integer -price:Double-stock:Integer-description:String -image:String-artist:Artist -kind:Integer
PaymentDao
+addPayment(Payment payment):Long
0 条评论
回复 删除
下一页