Upload LMS.json
Browse files
LMS.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source": "Library Management System Specification",
|
| 3 |
+
"diagrams": [
|
| 4 |
+
{
|
| 5 |
+
"diagram_type": "UseCase",
|
| 6 |
+
"components": {
|
| 7 |
+
"actors": [
|
| 8 |
+
"User",
|
| 9 |
+
"Librarian",
|
| 10 |
+
"Member"
|
| 11 |
+
],
|
| 12 |
+
"use_cases": [
|
| 13 |
+
"Add Book",
|
| 14 |
+
"Remove Book",
|
| 15 |
+
"Register Member",
|
| 16 |
+
"Search Book",
|
| 17 |
+
"Borrow Book",
|
| 18 |
+
"Return Book"
|
| 19 |
+
],
|
| 20 |
+
"relationships": [
|
| 21 |
+
{ "type": "association", "from": "Librarian", "to": "Add Book" },
|
| 22 |
+
{ "type": "association", "from": "Librarian", "to": "Remove Book" },
|
| 23 |
+
{ "type": "association", "from": "Librarian", "to": "Register Member" },
|
| 24 |
+
{ "type": "association", "from": "Member", "to": "Search Book" },
|
| 25 |
+
{ "type": "association", "from": "Member", "to": "Borrow Book" },
|
| 26 |
+
{ "type": "association", "from": "Member", "to": "Return Book" },
|
| 27 |
+
{ "type": "generalization", "from": "Member", "to": "User" },
|
| 28 |
+
{ "type": "generalization", "from": "Librarian", "to": "User" },
|
| 29 |
+
{ "type": "include", "from": "Borrow Book", "to": "Search Book" },
|
| 30 |
+
{ "type": "extend", "from": "Return Book", "to": "Borrow Book" }
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"diagram_type": "Class",
|
| 36 |
+
"components": {
|
| 37 |
+
"classes": [
|
| 38 |
+
{
|
| 39 |
+
"name": "Book",
|
| 40 |
+
"attributes": ["bookID", "title", "author", "availability"],
|
| 41 |
+
"methods": ["addBook()", "removeBook()", "updateAvailability()"]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"name": "Member",
|
| 45 |
+
"attributes": ["memberID", "name", "contactDetails"],
|
| 46 |
+
"methods": ["registerMember()", "searchBook()", "borrowBook()", "returnBook()"]
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"name": "Librarian",
|
| 50 |
+
"attributes": ["employeeID", "name", "contactDetails"],
|
| 51 |
+
"methods": ["addBook()", "removeBook()", "registerMember()"]
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"name": "Transaction",
|
| 55 |
+
"attributes": ["transactionID", "bookID", "memberID", "borrowDate", "returnDate"],
|
| 56 |
+
"methods": ["recordTransaction()", "trackBorrowingHistory()"]
|
| 57 |
+
}
|
| 58 |
+
],
|
| 59 |
+
"relationships": [
|
| 60 |
+
{ "type": "association", "from": "Librarian", "to": "Book" },
|
| 61 |
+
{ "type": "association", "from": "Librarian", "to": "Member" },
|
| 62 |
+
{ "type": "association", "from": "Member", "to": "Book" },
|
| 63 |
+
{ "type": "association", "from": "Transaction", "to": "Book" },
|
| 64 |
+
{ "type": "association", "from": "Transaction", "to": "Member" }
|
| 65 |
+
]
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"diagram_type": "Sequence",
|
| 70 |
+
"components": {
|
| 71 |
+
"actors": [
|
| 72 |
+
"Member",
|
| 73 |
+
"Librarian"
|
| 74 |
+
],
|
| 75 |
+
"objects": [
|
| 76 |
+
"LibrarySystem",
|
| 77 |
+
"BookCatalog",
|
| 78 |
+
"Transaction"
|
| 79 |
+
],
|
| 80 |
+
"messages": [
|
| 81 |
+
{ "from": "Member", "to": "LibrarySystem", "message": "searchBook()" },
|
| 82 |
+
{ "from": "LibrarySystem", "to": "BookCatalog", "message": "findBook()" },
|
| 83 |
+
{ "from": "BookCatalog", "to": "LibrarySystem", "message": "returnBookList()" },
|
| 84 |
+
{ "from": "Member", "to": "LibrarySystem", "message": "borrowBook()" },
|
| 85 |
+
{ "from": "LibrarySystem", "to": "Transaction", "message": "recordTransaction()" },
|
| 86 |
+
{ "from": "LibrarySystem", "to": "BookCatalog", "message": "updateAvailability()" },
|
| 87 |
+
{ "from": "Member", "to": "LibrarySystem", "message": "returnBook()" },
|
| 88 |
+
{ "from": "LibrarySystem", "to": "Transaction", "message": "updateTransaction()" },
|
| 89 |
+
{ "from": "LibrarySystem", "to": "BookCatalog", "message": "updateAvailability()" }
|
| 90 |
+
]
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
]
|
| 94 |
+
}
|