ReshmaUMLGraphMaster commited on
Commit
dbbbc6b
Β·
verified Β·
1 Parent(s): b7e5dc7

Update Lib.json

Browse files
Files changed (1) hide show
  1. Lib.json +70 -75
Lib.json CHANGED
@@ -1,75 +1,70 @@
1
- [
2
- {
3
- "input": "The librarian adds a new book to the system. A member can search for books in the library. A member borrows a book. The librarian removes a book from the system. A member returns a borrowed book. The librarian issues a new book to a member. The member renews a borrowed book. The librarian categorizes books in the system. A member reserves a book if it's unavailable. The librarian manages the library’s inventory. A member inquires about book availability. A librarian reviews book requests.",
4
- "output": {
5
- "Actor": [
6
- "Librarian (A1)",
7
- "Member (A2)"
8
- ],
9
- "Usecase/Action": [
10
- "Add a new book (UC1)",
11
- "Search for books (UC2)",
12
- "Borrow a book (UC3)",
13
- "Remove a book (UC4)",
14
- "Return a borrowed book (UC5)",
15
- "Issue a new book (UC6)",
16
- "Renew a borrowed book (UC7)",
17
- "Categorize books (UC8)",
18
- "Reserve a book (UC9)",
19
- "Manage inventory (UC10)",
20
- "Inquire about book availability (UC11)",
21
- "Review book requests (UC12)"
22
- ],
23
- "Relationship": [
24
- "Librarian (A1) β†’ Add a new book (UC1) β†’ Association",
25
- "Member (A2) β†’ Search for books (UC2) β†’ Association",
26
- "Member (A2) β†’ Borrow a book (UC3) β†’ Association",
27
- "Librarian (A1) β†’ Remove a book (UC4) β†’ Association",
28
- "Member (A2) β†’ Return a borrowed book (UC5) β†’ Association",
29
- "Librarian (A1) β†’ Issue a new book (UC6) β†’ Association",
30
- "Member (A2) β†’ Renew a borrowed book (UC7) β†’ Association",
31
- "Librarian (A1) β†’ Categorize books (UC8) β†’ Association",
32
- "Member (A2) β†’ Reserve a book (UC9) β†’ Association, Extends Borrow a book (UC3)",
33
- "Librarian (A1) β†’ Manage inventory (UC10) β†’ Association, Includes Add a new book (UC1) & Remove a book (UC4)",
34
- "Member (A2) β†’ Inquire about book availability (UC11) β†’ Association",
35
- "Librarian (A1) β†’ Review book requests (UC12) β†’ Association"
36
- ],
37
- "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",
38
- "Class_Diagram_Components": {
39
- "Classes": [
40
- "LibrarySystem",
41
- "Book",
42
- "Member",
43
- "Librarian",
44
- "Inventory",
45
- "Transaction"
46
- ],
47
- "Attributes": {
48
- "LibrarySystem": ["libraryName", "location", "books", "members"],
49
- "Book": ["title", "author", "isbn", "category", "availability"],
50
- "Member": ["memberID", "name", "address", "email", "borrowedBooks"],
51
- "Librarian": ["employeeID", "name", "contactInfo"],
52
- "Inventory": ["books", "totalBooks"]
53
- },
54
- "Methods": {
55
- "LibrarySystem": ["addBook", "removeBook", "searchBooks", "registerMember"],
56
- "Book": ["isAvailable", "borrow", "returnBook"],
57
- "Member": ["borrowBook", "returnBook", "reserveBook", "renewBook"],
58
- "Librarian": ["issueBook", "categorizeBook", "manageInventory", "reviewBookRequests"],
59
- "Inventory": ["checkInventory", "updateInventory"],
60
- "Transaction": ["processTransaction", "refundTransaction"]
61
- },
62
- "Relationships": [
63
- "LibrarySystem --* Book : Manages",
64
- "LibrarySystem --* Member : Registers",
65
- "LibrarySystem --* Inventory : Contains",
66
- "LibrarySystem --* Transaction : Logs",
67
- "Member --* Book : Borrows",
68
- "Librarian --* Transaction : Review",
69
- "Inventory --* Book : Contains"
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
+ }