diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-11 16:44:28 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-11 16:44:28 +0200 |
commit | 70feb9ed564fb7f557b7ab8b8d65e6376811b6ce (patch) | |
tree | d763d2a85475f564475624655ba5605eafb4d1e4 /docs | |
parent | a842040a09cd95cf5c32f67941c7e99569a12f57 (diff) |
rename File -> FileStrategy
Diffstat (limited to 'docs')
-rw-r--r-- | docs/class-diag.puml | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/docs/class-diag.puml b/docs/class-diag.puml index b8e8a63..3502aa5 100644 --- a/docs/class-diag.puml +++ b/docs/class-diag.puml @@ -26,14 +26,14 @@ exception Exception { rectangle Group_FileReading as "File reading" <<group>> { class FileReader <<Factory>> { - +open(url) : File& + +open(url) : FileStrategy& } - interface File { + interface FileStrategy { + read() : string + close() -- # open(string url) - # clone() : File* <<const>> + # clone() : FileStrategy* <<const>> } class LocalFile { - instance : LocalFile <<static>> @@ -46,11 +46,11 @@ rectangle Group_FileReading as "File reading" <<group>> { class Url <<irrelevant>> } - File <|.. LocalFile - File <|.. HTTPFile + FileStrategy <|.. LocalFile + FileStrategy <|.. HTTPFile - File <. FileReader - File .> FileReader + FileStrategy <. FileReader + FileStrategy .> FileReader HTTPFile --> CPR.Response CPR.Response - CPR.Url @@ -145,7 +145,9 @@ rectangle Group_Model as "Model" <<group>> { Color <.. TileAppearance } rectangle Group_Tile_Behavior as "Tile behavior" <<group>> { - interface TileBehavior + interface TileBehaviorStrategy + + class TileBehavior together { class GrayTileBehavior @@ -158,10 +160,10 @@ rectangle Group_Model as "Model" <<group>> { BlueTileBehavior -d[hidden]- YellowTileBehavior } - TileBehavior <|.. GrayTileBehavior - TileBehavior <|.. RedTileBehavior - TileBehavior <|.. BlueTileBehavior - TileBehavior <|.. YellowTileBehavior + TileBehaviorStrategy <|.. GrayTileBehavior + TileBehaviorStrategy <|.. RedTileBehavior + TileBehaviorStrategy <|.. BlueTileBehavior + TileBehaviorStrategy <|.. YellowTileBehavior Tile --> "state" TileBehavior } @@ -198,7 +200,7 @@ rectangle "Visualization" <<group>> { ' CanvasDeserializer <... Canvas ' Deserializer <... Museum -ParserStrategy ..> File +ParserStrategy ..> FileStrategy ' Museum .> Deserializer : friend Deserializer .> Museum |