0% found this document useful (0 votes)
7 views1 page

Class Diagram

The document outlines a class diagram for a product management system, detailing various classes such as Product, User, Address, and Payment, along with their attributes and methods. It includes enumerations for ConnectivityType, MouseType, KeyboardType, and LayoutType. The relationships between these classes indicate how products are managed, user accounts are handled, and payments are processed within the system.

Uploaded by

allleksashka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Class Diagram

The document outlines a class diagram for a product management system, detailing various classes such as Product, User, Address, and Payment, along with their attributes and methods. It includes enumerations for ConnectivityType, MouseType, KeyboardType, and LayoutType. The relationships between these classes indicate how products are managed, user accounts are handled, and payments are processed within the system.

Uploaded by

allleksashka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Visual Paradigm Standard(Thomas Whitticase(Loughborough University))

Product 0..* Database


-barcode : String -STOCK_PATH : String
1
-deviceName : String -USER_ACCOUNTS_PATH : String
User
-brand : String +getExistingProductWithBarcode() : Product
-id : String Address
-connectivity : ConnectivityType +loadStock() : List<Product>
0..* -username : String -houseNumber : int
-quantity : int -sortProductsByPrice() : List<Product>
-postcode : String
-originalCost : float 1 -address : Address +getUserList() : List<User>
-retailPrice : float -role : String 1 -city : String
+newProduct()
+getProducts() : List<Product> +getHouseNumber() : int
+productIsEqual() : bool +productExists() : Bool
<<enumeration>> +getUsername() : String 1 +getPostcode() : String
+getRetailPrice() : float +setQuantity()
ConnectivityType +getRole() : String +getCity() : String
+getOriginalCost() : float +removeStock()
WIRED +getName() : String
+getQuantity() : int +saveStock()
WIRELESS +getAddress() : Address
+setQuantity()
+getConnectivity() : ConnectivityType +getProducts()
+getBrand() : String 1
+getDeviceName() : String
+getBarcode() : String 1
1 Admin
+getColour() : String 1
0..* +getProducts() : List<Product>
+addProduct() 1

Payment
0..* +validate() : String
Mouse Keyboard
-numberOfButtons : int -layout : LayoutType Customer
-deviceType : MouseType -deviceType : KeyboardType -basket : List<Product>
+getCheckoutCost() : float 1
+getNumberOfButtons() : int +getLayout() : LayoutType
+getDeviceType() : MouseType +getDeviceType() : KeyboardType +checkout() PayPal CreditCard
+getProducts() : List<Product> -email : String -cardNumber : String
+addToBasket() -securityCode : String
+validate() : String
+getBasket() : List<Product>
+validate() : String
+clearBasket()
<<enumeration>> <<enumeration>> <<enumeration>>
MouseType KeyboardType LayoutType
STANDARD STANDARD UK
GAMING GAMING US
FLEXIBLE

You might also like