diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-29 00:22:44 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-29 00:22:44 +0100 |
commit | d9e2c4bb66e73cc83ee1e21186d851866c46dacd (patch) | |
tree | 480f6447b6dd85a0223b3bef1e230bb92d2adde7 /umlDiagram/output.puml | |
parent | 7c23f453d166d396451504e26fbb385afc0c4c13 (diff) |
Creating the diagram and finishing the report.
Diffstat (limited to 'umlDiagram/output.puml')
-rw-r--r-- | umlDiagram/output.puml | 120 |
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 |