Update 'src/pubsub/pubsub/Readme.md'
This commit is contained in:
parent
97dbc52459
commit
56a4127edc
@ -27,7 +27,7 @@ You can use the `Minimal<X>` classes in three ways:
|
|||||||
__Upsides__: You can implement as many instances of `Minimal<X>` as you like
|
__Upsides__: You can implement as many instances of `Minimal<X>` as you like
|
||||||
__Downsides__: Code get's complicated and confusing
|
__Downsides__: Code get's complicated and confusing
|
||||||
* Implement `Minimal<X>` inside your device class the same way as implementing in your main script (__<-- ToDo !!!__)
|
* Implement `Minimal<X>` inside your device class the same way as implementing in your main script (__<-- ToDo !!!__)
|
||||||
__Upsides__: You can implement as man instances of `Minimal<X>` as you like; You can wrap these instances inside you device class
|
__Upsides__: You can implement as many instances of `Minimal<X>` as you like; You can wrap these instances inside you device class
|
||||||
__Downsides__: __ToDo__
|
__Downsides__: __ToDo__
|
||||||
* Build device class upon `Minimal<X>` by using this structure
|
* Build device class upon `Minimal<X>` by using this structure
|
||||||
```python
|
```python
|
||||||
@ -38,5 +38,5 @@ For example:
|
|||||||
class StateMachineCMDServiceProvider(MinimalServiceProvider):
|
class StateMachineCMDServiceProvider(MinimalServiceProvider):
|
||||||
```
|
```
|
||||||
(Example: [statemachine_host_example.py](None): device class is built upon `MinimalServiceProvider` class.)
|
(Example: [statemachine_host_example.py](None): device class is built upon `MinimalServiceProvider` class.)
|
||||||
__Upsides__: `Minimal<X>` is automatically instantiated when creating an instance of your device class though `__init()__`
|
__Upsides__: `Minimal<X>` is automatically instantiated when creating an instance of your device class due to `__init()__`
|
||||||
__Downsides__: You can only implement one instance of `Minimal<X>`, eg. one device class can only implement one publisher, in this case you want to implement `Minimal<X>` inside device class (see above)
|
__Downsides__: You can only implement one instance of `Minimal<X>`, eg. one device class can only implement one publisher. If you need more than one instance you want to implement `Minimal<X>` inside your device class (see above)
|
Loading…
Reference in New Issue
Block a user