Sei sulla pagina 1di 1

User

BorrowMovie
- name : String
borrowedMovie:Movie
- address : String
dueDate : Date
- contactNo : String
0..* - userID : String
- password : String
- userTransactions : ArrayList<Transaction>
1

1 1
Cart
- userID : String
- itemList : ArrayList<Movie> 0..* Movie
- cost : double Transaction - title : String
- userID : String - movieID : String
1 - movieList : ArrayList<Movie> - movieDetails : String
- receipt : String - language : String
- amount : double - diskType : String
1 0..*

Administrator 0..*
0..*
- name : String 1
- address : String
- contactNo : String 1 1 1
- userID : String
MovieLibrary
- password : String
- movieDatabase : ArrayList<Movie>
- userDatabase : ArrayList<User>
- tranactionDatbase : ArrayList<Transaction>
- currentUser : User
- userCart : Cart
- sysAdmin : Administrator 1
finalizeTransaction() SearchItems
changeMovieDatabase()
movieName :String
generateReceipt()
1 movieId:String
appendTransactionList()
checkTitleAvailiblity()
checkQuantityAvailibility()
RentAMovieControleer
-
-

RegisteredUser
Controller
Administrator Registration Search
-
Controller Controller Controller
-
- - -
addToCart()
- - -
viewCartItems()
initializeAddRemoeOrUpdateMovies() borrowAllMoviesFromCart() userRegistration() initiateSearchMovie()
loadAdministratorProfilePage() returnMovieToLibrary()
viewTransaction() loadUserProfile()

AdministratorUI UserUI RegistrationUI


- - CartUI -
- - - - SearchUI
TransactionUI
showGetOptionsUI() showLoginScreen() - getUserDetails() -
getOptionsFromAdmin() - validateUserInput() showUserRegistrationScreen()
showCartUI() -
showAddMovieUI() - requestConfirmation() validateUserDetails()
getOrderDetail() showSearchQueryUI()
showUpdateMovieUI() showTransaction() showBorrowedMovieUI() showUpdatedCart() requestConfirmation() getQueryString()
showSuccesfulUpdation() showTransactionSearchUI() viewUserDetails() showMoviesinCart() displayUserId() showSeacrhResult()

GenereicUI
-
-
isInteger()
isString()
isFloat()