2014-02-09 50 views
0

我要畫UML用例圖如下場景:畫UML用例圖

In the university to set up a new coffee management system. These are the (informal) requirements: 

1. A coffee machine dispenses coffee at the press of a button. 
2. There are different coffee flavors (espresso, cappuccino, or latte macchiato) with different 
prices. 
3. Every user has an account on the coffee management system. 
4. Every user logs on to the system using some identification (a password or picture). 
5. Users choose the coffees they had (or will have) and mark them as 「dispensed」. 
6. The price for the coffee is automatically deducted from their account. 
7. A special user (the 「administrator」) can recharge user’s accounts. 

如何創建對於上述方案,包括方案和異常的使用情況。

我試圖繪製用例圖,請有人可以檢查是否正確。提前致謝。

enter image description here

回答

0

我在這裏有一個UML啓動了另一個系統的對話。我認爲,discussion可能對你有用。

我想:

  • 變化type passwordlogin。扔掉verify user
  • 添加create login,set password,change password,delete login - Admin的更多用例。
  • 加入login和所有那些到Account management rectangle =一個子系統。
  • 沒有說用戶應該是學生。不要無理由限制實體。
  • Add/Remove/Edit SortsSet/Edit Prices用例添加到Admin。加入他們到Assortiment子系統。
  • 爲用戶添加View Assortiment
  • 從管理員到用戶放置泛化箭頭。管理員也可以使用該系統,他需要登錄。
  • look account state添加到用戶
  • 你在哪裏有這個「標記爲」已分配「」,你怎麼想到的?

  • 使用一些工具進行編輯。在每個版本重繪圖都需要很長時間。 (您可以免費獲得VP-UML的變體,但這並不理想,但實踐這個,您正在學習三種廣泛使用的專有工具之一)