-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from mcci-catena/issue189
Major doc improvement; add cFSM<>
- Loading branch information
Showing
8 changed files
with
1,345 additions
and
10 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
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,87 @@ | ||
@startuml | ||
/' | ||
Module: Catena_LoRaWAN.plantuml | ||
Function: | ||
PlantUML reference source for Catena::LoRaWAN class diagram. | ||
Copyright: | ||
See accompanying LICENSE file at | ||
https:://github.com/mcci-catena/Catena-Arduino-Platform | ||
Author: | ||
Terry Moore, MCCI Corporation July 2019 | ||
Notes: | ||
PlantUML images in REAMDE.md are generated by pasting this file into | ||
the server at http://www.plantuml.com/plantuml, and grabbing the | ||
resulting URLs. | ||
'/ | ||
|
||
hide empty members | ||
|
||
package Arduino-LoRaWAN as "MCCI Arduino LoRaWAN Library" { | ||
abstract class Arduino_LoRaWAN | ||
|
||
abstract class Arduino_LoRaWAN_machineQ_base as ".._machineQ_base" | ||
|
||
class Arduino_LoRaWAN_machineQ_us915 as ".._machineQ_us915" | ||
|
||
class Arduino_LoRaWAN_machineQ | ||
|
||
abstract class Arduino_LoRaWAN_ttn_base as ".._ttn_base" | ||
|
||
class Arduino_LoRaWAN_ttn_eu868 as ".._ttn_eu868" | ||
class Arduino_LoRaWAN_ttn_us915 as ".._ttn_us915" | ||
class Arduino_LoRaWAN_ttn_au921 as ".._ttn_au921" | ||
class Arduino_LoRaWAN_ttn_as923 as ".._ttn_as923" | ||
class Arduino_LoRaWAN_ttn_in866 as ".._ttn_in866" | ||
|
||
class Arduino_LoRaWAN_ttn | ||
|
||
Arduino_LoRaWAN <|-- Arduino_LoRaWAN_machineQ_base | ||
Arduino_LoRaWAN <|-- Arduino_LoRaWAN_ttn_base | ||
Arduino_LoRaWAN_machineQ_base <|-- Arduino_LoRaWAN_machineQ_us915 | ||
Arduino_LoRaWAN_machineQ_us915 <|.. Arduino_LoRaWAN_machineQ | ||
note right on link | ||
Region selected at compile time | ||
by IDE or command line | ||
end note | ||
|
||
Arduino_LoRaWAN_ttn_base <|-- Arduino_LoRaWAN_ttn_eu868 | ||
Arduino_LoRaWAN_ttn_base <|-- Arduino_LoRaWAN_ttn_us915 | ||
Arduino_LoRaWAN_ttn_base <|-- Arduino_LoRaWAN_ttn_au921 | ||
Arduino_LoRaWAN_ttn_base <|-- Arduino_LoRaWAN_ttn_as923 | ||
Arduino_LoRaWAN_ttn_base <|-- Arduino_LoRaWAN_ttn_in866 | ||
|
||
Arduino_LoRaWAN_ttn_eu868 <|.. Arduino_LoRaWAN_ttn | ||
Arduino_LoRaWAN_ttn_us915 <|.. Arduino_LoRaWAN_ttn | ||
Arduino_LoRaWAN_ttn_au921 <|.. Arduino_LoRaWAN_ttn | ||
Arduino_LoRaWAN_ttn_as923 <|.. Arduino_LoRaWAN_ttn | ||
Arduino_LoRaWAN_ttn_in866 <|.. Arduino_LoRaWAN_ttn | ||
} | ||
|
||
namespace McciCatena { | ||
|
||
class cPollableObject | ||
class Catena::LoRaWAN | ||
note right | ||
Some complexity hidden; | ||
Subclasses deal with device | ||
configuration and FRAM | ||
usage. | ||
end note | ||
|
||
cPollableObject <|- Catena::LoRaWAN | ||
|
||
.Arduino_LoRaWAN_machineQ <|.. Catena::LoRaWAN | ||
note right on link | ||
Network selected at compile time | ||
by IDE or command line. | ||
end note | ||
.Arduino_LoRaWAN_ttn <|.. Catena::LoRaWAN | ||
|
||
} | ||
@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,59 @@ | ||
@startuml | ||
/' | ||
Module: CatenaBase.plantuml | ||
Function: | ||
PlantUML reference source for cPollableInterface class diagram. | ||
Copyright: | ||
See accompanying LICENSE file | ||
Author: | ||
Terry Moore, MCCI Corporation July 2019 | ||
Notes: | ||
PlantUML images in REAMDE.md are generated by pasting this file into | ||
the server at http://www.plantuml.com/plantuml, and grabbing the | ||
resulting URLs. That has to be done several times, with different | ||
values edited into the variables below. The comments in README.md | ||
will tell you what's needed. | ||
'/ | ||
|
||
hide empty members | ||
|
||
namespace McciCatena { | ||
|
||
interface cPollableInterface { | ||
+{abstract} ~cPollableInterface() | ||
+{abstract} void poll(); | ||
} | ||
|
||
class cPollingEngine <<Pollable>> { | ||
+void poll(); | ||
+void begin(); | ||
+void registerObject(cPollableObject *); | ||
-cPollableObject *m_pHead; | ||
} | ||
|
||
abstract class cPollableObject <<Pollable>> { | ||
-cPollableObject *m_pNext; | ||
-cPollableObject *m_pLast; | ||
+{abstract} void poll(); | ||
} | ||
|
||
cPollableInterface <|-- cPollingEngine | ||
cPollableInterface <|-- cPollableObject | ||
cPollingEngine o-> "0:*" cPollableObject | ||
} | ||
class UserClass1 <<Pollable>> { | ||
+void poll(); | ||
} | ||
class UserClass2 as "..." <<Pollable>> { | ||
+void poll(); | ||
} | ||
McciCatena.cPollableObject <|--- UserClass1 | ||
McciCatena.cPollableObject <|--- UserClass2 | ||
|
||
@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,38 @@ | ||
@startuml | ||
/' | ||
Module: FSMexample.plantuml | ||
Function: | ||
PlantUML reference source for cFSM state diagram. | ||
Copyright: | ||
See accompanying LICENSE file at | ||
https:://github.com/mcci-catena/Catena-Arduino-Platform | ||
Author: | ||
Terry Moore, MCCI Corporation July 2019 | ||
Notes: | ||
PlantUML images in REAMDE.md are generated by pasting this file into | ||
the server at http://www.plantuml.com/plantuml, and grabbing the | ||
resulting URLs. That has to be done several times, with different | ||
values edited into the variables below. The comments in README.md | ||
will tell you what's needed. | ||
'/ | ||
|
||
[*] --> stLocked : stInitial | ||
|
||
state stLocked | ||
state stUnlocked | ||
|
||
stLocked --> stLocked : evPush | ||
stLocked : Entry/ lock the turnstile | ||
stLocked --> stUnlocked : evCoin | ||
stLocked -left-> [*] : shutdown\nstFinal | ||
|
||
stUnlocked --> stUnlocked : evCoin | ||
stUnlocked : Entry/ unlock the turnstile | ||
stUnlocked --> stLocked : evPush | shutdown | ||
@enduml |
Oops, something went wrong.