mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-22 22:25:35 +00:00
read.me and the diagram is added
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@startuml
|
||||
package com.iluwatar.event.queue {
|
||||
class App {
|
||||
+ App()
|
||||
+ getAudioStream(filePath : String) : AudioInputStream {static}
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
class Audio {
|
||||
- MAX_PENDING : int {static}
|
||||
- headIndex : int {static}
|
||||
- pendingAudio : PlayMessage[] {static}
|
||||
- tailIndex : int {static}
|
||||
- updateThread : Thread {static}
|
||||
+ Audio()
|
||||
+ init() {static}
|
||||
+ playSound(stream : AudioInputStream, volume : float) {static}
|
||||
+ stopService() {static}
|
||||
+ update() {static}
|
||||
}
|
||||
class PlayMessage {
|
||||
~ stream : AudioInputStream
|
||||
~ volume : float
|
||||
+ PlayMessage()
|
||||
}
|
||||
}
|
||||
@enduml
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user