-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuml.txt
48 lines (37 loc) · 1.13 KB
/
uml.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@startuml
hide empty members
abstract class Server {
+ {static} n_max_returned_entries:int
+ __init__(self, *args, **kwargs)
+ get_entries(self, n_letters: Optional[int]=1): List[Optional[Product]]
+ {abstract} _get_products_list(self, n_letters: Optional[int] = 1): List[Product]
}
class ListServer {
+ products: List[Product]
+ __init__(self, product: List[Product], *args, **kwargs)
+ _get_products_list(n_letters:Optional[int]): List[Optional[Product]]
}
Server <|-- ListServer
ListServer "1" *-- "*" Product
class MapServer {
+ products: Dict[str, Product]
+ __init__(self, product: List[Product], *args, **kwargs)
+ _get_products_list(n_letters:Optional[int]): List[Optional[Product]]
}
Server <|-- MapServer
MapServer "1" *-- "*" Product
class Client {
+ __init__(self, server: Server)
+ server: Server
+ get_total_price(self, n_letters: Optional[int]): float
}
Client o-- Server
class Product {
+ _init__(self, name: str, price: float)
+ name: str
+ price: float
}
class TooManyProductsFoundError {
}
Server ..> TooManyProductsFoundError: << throws >>
@enduml