Update Lib.json
Browse files
Lib.json
CHANGED
@@ -1,75 +1,70 @@
|
|
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 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
},
|
72 |
-
"Class_Diagram_PlantUML": "@startuml\nclass LibrarySystem {\n - libraryName: String\n - location: String\n - books[]: Book\n - members[]: Member\n + addBook(): void\n + removeBook(): void\n + searchBooks(): Book[]\n + registerMember(): void\n}\n\nclass Book {\n - title: String\n - author: String\n - isbn: String\n - category: String\n - availability: Boolean\n + isAvailable(): Boolean\n + borrow(): void\n + returnBook(): void\n}\n\nclass Member {\n - memberID: String\n - name: String\n - address: String\n - email: String\n - borrowedBooks[]: Book\n + borrowBook(): void\n + returnBook(): void\n + reserveBook(): void\n + renewBook(): void\n}\n\nclass Librarian {\n - employeeID: String\n - name: String\n - contactInfo: String\n + issueBook(): void\n + categorizeBook(): void\n + manageInventory(): void\n + reviewBookRequests(): void\n}\n\nclass Inventory {\n - books[]: Book\n - totalBooks: Integer\n + checkInventory(): void\n + updateInventory(): void\n}\n\nclass Transaction {\n - transactionID: String\n - member: Member\n - book: Book\n - transactionDate: Date\n - type: String\n + processTransaction(): void\n + refundTransaction(): void\n}\n\nLibrarySystem --* Book : Manages\nLibrarySystem --* Member : Registers\nLibrarySystem --* Inventory : Contains\nLibrarySystem --* Transaction : Logs\nMember --* Book : Borrows\nLibrarian --* Transaction : Reviews\nInventory --* Book : Contains\n@enduml"
|
73 |
-
}
|
74 |
-
}
|
75 |
-
]
|
|
|
1 |
+
{
|
2 |
+
"Actor": [
|
3 |
+
"Librarian (A1)",
|
4 |
+
"Member (A2)"
|
5 |
+
],
|
6 |
+
"Usecase/Action": [
|
7 |
+
"Add a new book (UC1)",
|
8 |
+
"Search for books (UC2)",
|
9 |
+
"Borrow a book (UC3)",
|
10 |
+
"Remove a book (UC4)",
|
11 |
+
"Return a borrowed book (UC5)",
|
12 |
+
"Issue a new book (UC6)",
|
13 |
+
"Renew a borrowed book (UC7)",
|
14 |
+
"Categorize books (UC8)",
|
15 |
+
"Reserve a book (UC9)",
|
16 |
+
"Manage inventory (UC10)",
|
17 |
+
"Inquire about book availability (UC11)",
|
18 |
+
"Review book requests (UC12)"
|
19 |
+
],
|
20 |
+
"Relationship": [
|
21 |
+
"Librarian (A1) β Add a new book (UC1) β Association",
|
22 |
+
"Member (A2) β Search for books (UC2) β Association",
|
23 |
+
"Member (A2) β Borrow a book (UC3) β Association",
|
24 |
+
"Librarian (A1) β Remove a book (UC4) β Association",
|
25 |
+
"Member (A2) β Return a borrowed book (UC5) β Association",
|
26 |
+
"Librarian (A1) β Issue a new book (UC6) β Association",
|
27 |
+
"Member (A2) β Renew a borrowed book (UC7) β Association",
|
28 |
+
"Librarian (A1) β Categorize books (UC8) β Association",
|
29 |
+
"Member (A2) β Reserve a book (UC9) β Association, Extends Borrow a book (UC3)",
|
30 |
+
"Librarian (A1) β Manage inventory (UC10) β Association, Includes Add a new book (UC1) & Remove a book (UC4)",
|
31 |
+
"Member (A2) β Inquire about book availability (UC11) β Association",
|
32 |
+
"Librarian (A1) β Review book requests (UC12) β Association"
|
33 |
+
],
|
34 |
+
"UseCase_PlantUML": "@startuml\nactor \"Librarian\" as A1\nactor \"Member\" as A2\n\nusecase \"Add a new book\" as UC1\nusecase \"Search for books\" as UC2\nusecase \"Borrow a book\" as UC3\nusecase \"Remove a book\" as UC4\nusecase \"Return a borrowed book\" as UC5\nusecase \"Issue a new book\" as UC6\nusecase \"Renew a borrowed book\" as UC7\nusecase \"Categorize books\" as UC8\nusecase \"Reserve a book\" as UC9\nusecase \"Manage inventory\" as UC10\nusecase \"Inquire about book availability\" as UC11\nusecase \"Review book requests\" as UC12\n\nA1 -- UC1\nA2 -- UC2\nA2 -- UC3\nA1 -- UC4\nA2 -- UC5\nA1 -- UC6\nA2 -- UC7\nA1 -- UC8\nA2 -- UC9\nA1 -- UC10\nA2 -- UC11\nA1 -- UC12\n\nUC10 ..|> UC1 : <<include>>\nUC10 ..|> UC4 : <<include>>\nUC9 ..|> UC3 : <<extend>>\n@enduml",
|
35 |
+
"Class_Diagram_Components": {
|
36 |
+
"Classes": [
|
37 |
+
"LibrarySystem",
|
38 |
+
"Book",
|
39 |
+
"Member",
|
40 |
+
"Librarian",
|
41 |
+
"Inventory",
|
42 |
+
"Transaction"
|
43 |
+
],
|
44 |
+
"Attributes": {
|
45 |
+
"LibrarySystem": ["libraryName", "location", "books", "members"],
|
46 |
+
"Book": ["title", "author", "isbn", "category", "availability"],
|
47 |
+
"Member": ["memberID", "name", "address", "email", "borrowedBooks"],
|
48 |
+
"Librarian": ["employeeID", "name", "contactInfo"],
|
49 |
+
"Inventory": ["books", "totalBooks"]
|
50 |
+
},
|
51 |
+
"Methods": {
|
52 |
+
"LibrarySystem": ["addBook", "removeBook", "searchBooks", "registerMember"],
|
53 |
+
"Book": ["isAvailable", "borrow", "returnBook"],
|
54 |
+
"Member": ["borrowBook", "returnBook", "reserveBook", "renewBook"],
|
55 |
+
"Librarian": ["issueBook", "categorizeBook", "manageInventory", "reviewBookRequests"],
|
56 |
+
"Inventory": ["checkInventory", "updateInventory"],
|
57 |
+
"Transaction": ["processTransaction", "refundTransaction"]
|
58 |
+
},
|
59 |
+
"Relationships": [
|
60 |
+
"LibrarySystem --* Book : Manages",
|
61 |
+
"LibrarySystem --* Member : Registers",
|
62 |
+
"LibrarySystem --* Inventory : Contains",
|
63 |
+
"LibrarySystem --* Transaction : Logs",
|
64 |
+
"Member --* Book : Borrows",
|
65 |
+
"Librarian --* Transaction : Review",
|
66 |
+
"Inventory --* Book : Contains"
|
67 |
+
]
|
68 |
+
},
|
69 |
+
"Class_Diagram_PlantUML": "@startuml\nclass LibrarySystem {\n - libraryName: String\n - location: String\n - books[]: Book\n - members[]: Member\n + addBook(): void\n + removeBook(): void\n + searchBooks(): Book[]\n + registerMember(): void\n}\n\nclass Book {\n - title: String\n - author: String\n - isbn: String\n - category: String\n - availability: Boolean\n + isAvailable(): Boolean\n + borrow(): void\n + returnBook(): void\n}\n\nclass Member {\n - memberID: String\n - name: String\n - address: String\n - email: String\n - borrowedBooks[]: Book\n + borrowBook(): void\n + returnBook(): void\n + reserveBook(): void\n + renewBook(): void\n}\n\nclass Librarian {\n - employeeID: String\n - name: String\n - contactInfo: String\n + issueBook(): void\n + categorizeBook(): void\n + manageInventory(): void\n + reviewBookRequests(): void\n}\n\nclass Inventory {\n - books[]: Book\n - totalBooks: Integer\n + checkInventory(): void\n + updateInventory(): void\n}\n\nclass Transaction {\n - transactionID: String\n - member: Member\n - book: Book\n - transactionDate: Date\n - type: String\n + processTransaction(): void\n + refundTransaction(): void\n}\n\nLibrarySystem --* Book : Manages\nLibrarySystem --* Member : Registers\nLibrarySystem --* Inventory : Contains\nLibrarySystem --* Transaction : Logs\nMember --* Book : Borrows\nLibrarian --* Transaction : Reviews\nInventory --* Book : Contains\n@enduml"
|
70 |
+
}
|
|
|
|
|
|
|
|
|
|