aboutsummaryrefslogtreecommitdiff
path: root/umlDiagram/output.puml
diff options
context:
space:
mode:
Diffstat (limited to 'umlDiagram/output.puml')
-rw-r--r--umlDiagram/output.puml120
1 files changed, 120 insertions, 0 deletions
diff --git a/umlDiagram/output.puml b/umlDiagram/output.puml
new file mode 100644
index 0000000..60d9a41
--- /dev/null
+++ b/umlDiagram/output.puml
@@ -0,0 +1,120 @@
+@startuml
+skinparam classAttributeIconSize 0
+class Playlist{
+- {static} serialVersionUID : long
+- id : int
+- name : String
+- songs : ArrayList<Song>
+- audiobooks : ArrayList<AudioBook>
++ Playlist(name : String, songs : ArrayList<Song>, audiobooks : ArrayList<AudioBook>)
++ getId() : int
++ getName() : String
++ getSongs() : void
++ getAudioBooks() : void
++ setId(id : int) : void
++ setName(name : String) : void
++ toString() : String
+}
+Playlist ..|> Serializable
+class AudioBook{
+- {static} serialVersionUID : long
+- author : String
++ AudioBook(title : String, duration : int, content : String, author : String, language : Language, category : Category)
++ getAuthor() : String
++ getLanguage() : String
++ getCategory() : String
++ setArtist(author : String) : void
++ setGenre(language : Language) : void
++ setCategory(category : Category) : void
++ toString() : String
+}
+AudioBook --|> MusicalElement
+class jMusicHub{
++ jMusicHub()
++ {static} addSong(scan : Scanner) : Song
++ {static} addAudioBook(scan : Scanner) : AudioBook
++ {static} addAlbum(scan : Scanner) : Album
++ {static} addPlaylist(scan : Scanner, songs : ArrayList<Song>, audiobooks : ArrayList<AudioBook>) : Playlist
++ {static} save(filename : String, elements : ArrayList) : void
++ {static} listById(filename : String) : void
++ {static} listPlaylistsByName() : void
++ {static} listAlbumsByDate() : void
++ {static} listAlbumsByGenre() : void
++ {static} listAudioBooksByAuthor() : void
++ {static} extract(filename : String) : ArrayList
++ {static} addSongToAlbum(scan : Scanner, albums : ArrayList<Album>, songs : ArrayList<Song>) : void
++ {static} delPlaylist(playlists : ArrayList<Playlist>) : ArrayList<Playlist>
++ {static} contentOfPlaylist(playlists : ArrayList<Playlist>) : void
++ {static} contentOfAlbum(albums : ArrayList<Album>) : void
++ {static} main(args : String[]) : void
+}
+class Album{
+- {static} serialVersionUID : long
+- id : int
+- date : Date
+- title : String
+- songs : ArrayList<Song>
++ Album(title : String, duration : int, artist : String, date : Date, songs : ArrayList<Song>)
++ getId() : int
++ getTitle() : String
++ getDuration() : int
++ getArtist() : String
++ getDate() : Date
++ getSongs() : void
++ getGenre() : String
++ setId(id : int) : void
++ setTitle(title : String) : void
++ setArtist(artist : String) : void
++ setDate(date : Date) : void
++ addSong(song : Song) : void
++ toString() : String
+}
+Album ..|> Serializable
+class Song{
+- {static} serialVersionUID : long
+- artist : String
++ Song(title : String, duration : int, content : String, artist : String, genre : Genre)
++ getArtist() : String
++ getGenre() : String
++ setArtist(artist : String) : void
++ setGenre(genre : Genre) : void
++ toString() : String
+}
+Song --|> MusicalElement
+class MusicalElement{
+- id : int
+- title : String
++ MusicalElement(title : String, duration : int, content : String)
++ getId() : int
++ getTitle() : String
++ getDuration() : int
++ getContent() : String
++ setId(id : int) : void
++ setTitle(title : String) : void
++ setDuration(duration : int) : void
++ setContent(content : String) : void
+}
+MusicalElement ..|> Serializable
+enum Genre{
+JAZZ
+CLASSICAL
+HIPHOP
+ROCK
+POP
+RAP
+}
+enum Language{
+FRENCH
+ENGLISH
+ITALIAN
+SPANISH
+GERMAN
+}
+enum Category{
+TEEN
+NOVEL
+THEATER
+SPEECH
+DOCUMENTARY
+}
+@enduml \ No newline at end of file