pattern: Active-Object pattern. (#1660)
* Closes #65. * Removed * Removed unnecessary files. Added logging. Closes Fixes #1660. * Added Terminition condition. * Logger implemented. Removed maven wrapper. * Added module to parent POM. removed .gitignore * Replaced tabs with whitespaces, added Javadocs. * Fixed more whitespaces problems. * Fixed more checkstyle errors * More checkstyle errors. * Checkstyle errors. * Final checkstyle cleanup * Added UML file. Changed System.exit() to Runtime. * Changed buisiness logic and readme.md file * Changed typos and readme.md file * Fixed checkstyle errors * Fixed grammer errors and CircleCI bugs. * Wrong readme.md * Added Thread.interrupt() for after catching exception. * Fixed SonarCloud code smells. * Removed unused brackets. * Changed main program exit logic. Added tests. * Reverted abstract-factory * Cleaned code * Added static to loggers. cleaned code smells. * Checkstyle errors. * Code Smells. Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
This commit is contained in:
25
active-object/etc/active-object.urm.puml
Normal file
25
active-object/etc/active-object.urm.puml
Normal file
@ -0,0 +1,25 @@
|
||||
@startuml
|
||||
package com.iluwatar.activeobject {
|
||||
abstract class ActiveCreature {
|
||||
- logger : Logger
|
||||
- name : String
|
||||
- requests : BlockingQueue<Runnable>
|
||||
- thread : Thread
|
||||
+ ActiveCreature(name : String)
|
||||
+ eat()
|
||||
+ name() : String
|
||||
+ roam()
|
||||
}
|
||||
class App {
|
||||
- creatures : Integer
|
||||
- logger : Logger
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
+ run()
|
||||
}
|
||||
class Orc {
|
||||
+ Orc(name : String)
|
||||
}
|
||||
}
|
||||
Orc --|> ActiveCreature
|
||||
@enduml
|
Reference in New Issue
Block a user