-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add comments to clarify Overlay and Merge method; add first draft docs
- Loading branch information
Showing
6 changed files
with
253 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@startuml | ||
!include https://raw.githubusercontent.com/joekolodz/puml-themes/main/themes/sierrahotas/puml-theme-sierrahotas.puml | ||
|
||
title | ||
|
||
SierraHOTAS | ||
Class Diagram | ||
|
||
Models | ||
|
||
end title | ||
|
||
interface IHOTASBaseMap | ||
|
||
class HOTASCollection { | ||
+ <<event>> KeystrokeDownSent | ||
+ <<event>> KeystrokeUpSent | ||
+ <<event>> MacroStarted | ||
+ <<event>> MacroCancelled | ||
+ <<event>> ButtonPressed | ||
+ <<event>> AxisChanged | ||
+ <<event>> ModeProfileChanged | ||
+ <<event>> LostConnectionToDevice | ||
} | ||
|
||
class HOTASDevice | ||
class "ButtonMap\nCollection" as ButtonMap | ||
class HOTASQueue { | ||
read loop | ||
} | ||
|
||
class Joystick { | ||
(DirectInput) | ||
} | ||
class HOTASAxis | ||
class HOTASButton | ||
class "Forward Button Map" as ForwardButtonMap | ||
class "Reverse Button Map" as ReverseButtonMap | ||
class Segments | ||
class ActionCatalogItem | ||
class ButtonAction { | ||
scan codes | ||
flags | ||
etc | ||
} | ||
|
||
IHOTASBaseMap .right. ButtonMap | ||
|
||
HOTASCollection -- "0..*" HOTASDevice | ||
HOTASDevice -- "0..*" ButtonMap | ||
HOTASDevice -- "1" HOTASQueue | ||
HOTASDevice -- "1" Joystick | ||
|
||
ButtonMap -- "0..*" HOTASAxis | ||
ButtonMap -- "0..*" HOTASButton | ||
|
||
HOTASAxis -- "0..*" Segments | ||
HOTASAxis -- "0..*" ForwardButtonMap | ||
HOTASAxis -- "0..*" ReverseButtonMap | ||
|
||
HOTASButton -- ActionCatalogItem | ||
ActionCatalogItem -- "0..*" ButtonAction | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@startuml | ||
|
||
!theme bluegray | ||
|
||
skinparam linetype ortho | ||
skinparam roundcorner 6 | ||
|
||
skinparam rectangle{ | ||
bordercolor black | ||
} | ||
|
||
skinparam collections{ | ||
bordercolor black | ||
} | ||
|
||
skinparam note{ | ||
fontsize 9 | ||
BackgroundColor $PRIMARY-$PRIMARY_LIGHT | ||
} | ||
|
||
rectangle HOTASCollection | ||
collections HOTASDevice | ||
collections "ButtonMap\n(IHotasBaseMap)" as ButtonMap | ||
rectangle "HOTASQueue\n(read loop)" as HOTASQueue | ||
rectangle "Joystick\n(DirectInput)" as Joystick | ||
collections HOTASAxis | ||
collections "Button Map" as HOTASButton | ||
collections "Reverse Button Map" as ReverseButtonMap | ||
collections Segments | ||
|
||
note right of HOTASCollection | ||
KeystrokeDownSent | ||
KeystrokeUpSent | ||
MacroStarted | ||
MacroCancelled | ||
ButtonPressed | ||
AxisChanged | ||
ModeProfileChanged | ||
endnote | ||
|
||
|
||
note right of HOTASDevice | ||
KeystrokeDownSent | ||
KeystrokeUpSent | ||
MacroStarted | ||
MacroCancelled | ||
ButtonPressed | ||
AxisChanged | ||
ModeProfileSelected | ||
ShiftReleased | ||
|
||
endnote | ||
|
||
|
||
HOTASCollection --> HOTASDevice | ||
HOTASDevice --> ButtonMap | ||
HOTASDevice --> HOTASQueue | ||
HOTASDevice --> Joystick | ||
ButtonMap ..> HOTASAxis | ||
ButtonMap .left.> HOTASButton | ||
HOTASAxis --> HOTASButton | ||
HOTASAxis --> ReverseButtonMap | ||
HOTASAxis --> Segments | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
@startuml | ||
!include https://raw.githubusercontent.com/joekolodz/puml-themes/main/themes/sierrahotas/puml-theme-sierrahotas.puml | ||
|
||
!$BLACK = "#000" | ||
|
||
!$TEXT_SECONDARY = $BLACK | ||
|
||
skinparam sequence { | ||
BorderColor $OBJECT_BORDER | ||
' For some reason sequence title font color does not pick up from global | ||
TitleFontColor $TEXT | ||
BackgroundColor $OBJECT_BACKGROUND | ||
StartColor $PRIMARY | ||
EndColor $PRIMARY | ||
'' | ||
BoxBackgroundColor $BGCOLOR | ||
BoxBorderColor $GRAY | ||
BoxFontColor $DARK | ||
'' | ||
DelayFontColor $DARK | ||
'' | ||
LifeLineBorderColor $TEXT | ||
LifeLineBorderThickness 2 | ||
LifeLineBackgroundColor $OBJECT_BACKGROUND | ||
'' | ||
GroupBorderColor $OBJECT_BORDER | ||
GroupFontColor $TEXT | ||
GroupHeaderFontColor $TEXT_HEADER | ||
GroupBackgroundColor $HEADER_BACKGROUND | ||
GroupBodyBackgroundColor $OBJECT_BACKGROUND | ||
GroupHeaderBackgroundColor $BACKGROUND | ||
'' | ||
DividerBackgroundColor $OBJECT_BACKGROUND | ||
DividerBorderColor $OBJECT_BORDER | ||
DividerBorderThickness 2 | ||
DividerFontColor $GOLD | ||
'' | ||
ReferenceBackgroundColor $OBJECT_BACKGROUND | ||
ReferenceBorderColor $OBJECT_BORDER | ||
ReferenceFontColor $DARK_BLUEGRAY | ||
ReferenceHeaderFontColor $TEXT_HEADER | ||
'' | ||
StereotypeFontColor $TEXT | ||
|
||
AttributeFontColor $TEXT | ||
AttributeFontSize 50 | ||
|
||
} | ||
|
||
|
||
|
||
skinparam note{ | ||
FontColor $TEXT_SECONDARY | ||
} | ||
|
||
|
||
title | ||
|
||
SierraHOTAS | ||
Sequence Diagram | ||
|
||
Models | ||
|
||
end title | ||
|
||
participant Participant as Foo | ||
actor Actor as Foo1 | ||
boundary Boundary as Foo2 | ||
control Control as Foo3 | ||
entity Entity as Foo4 | ||
database Database as Foo5 | ||
collections Collections as Foo6 | ||
queue Queue as Foo7 | ||
Foo -> Foo1 : To actor | ||
Foo -> Foo2 : To boundary | ||
Foo -> Foo3 : To control | ||
Foo -> Foo4 : To entity | ||
Foo -> Foo5 : To database | ||
Foo -> Foo6 : To collections | ||
Foo -> Foo7: To queue | ||
|
||
participant "Famous Bob" as Bob << Generated >> | ||
participant Alice << (C,$GOLD) Testable >> | ||
|
||
Alice -> Bob: Authentication Request | ||
|
||
alt successful case | ||
|
||
Bob -> Alice: Authentication Accepted | ||
rnote left: this is a first note | ||
else some kind of failure | ||
|
||
Bob -> Alice: Authentication Failure | ||
group My own label | ||
Alice -> Log : Log attack start | ||
loop 1000 times | ||
Alice -> Bob: DNS Attack | ||
end | ||
Alice -> Log : Log attack end | ||
end | ||
|
||
else Another type of failure | ||
|
||
Bob -> Alice: Please repeat | ||
|
||
end | ||
|
||
|
||
|
||
|
||
Bob->Alice: First message | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters