Closed BECATRUE closed 1 year ago
My suggestions:
broadcasted
would be more consistent.
broadcast_signal
: Signal for broadcasting to aBus
which contains i) the destination bus name and ii) the message.
received
: Siganl for receiving a global siganl from a bus which contains i) the departure bus name and ii) the message.
Frame
would be enough, instead of list.
- frames() → list: Return a list of
Frame
objects for showing
My suggestions:
- Name
broadcasted
would be more consistent.
broadcast_signal
: Signal for broadcasting to aBus
which contains i) the destination bus name and ii) the message.
- I would prefer 'source bus' to 'departure bus'. (+ typo 'Signal')
received
: Siganl for receiving a global siganl from a bus which contains i) the departure bus name and ii) the message.
- An iterable of
Frame
would be enough, instead of list.
- frames() → list: Return a list of
Frame
objects for showing
I reflected your commnts. How about this?
Feature you want to implement
Logic
is a controller forFrame
s.All
Frame
s are contained in theirLogic
respectively, and multipleFrame
s may be controlled by the sameLogic
.Also,
Logic
is communicated withswift
directly, such as sending and receiving global signals throughBus
inswift
.BaseLogic
is a parent class ofLogic
, where core fields and methods are already implemented.How the feature is implemented
BaseLogic
class will be implemented inswift.base
module.API:
broadcast
: Signal for broadcasting to aBus
which contains i) the destination bus name and ii) the message.received
: Signal for receiving a global siganl from a bus which contains i) the departure bus name and ii) the message.name
(str): A name ofLogic
.show
(bool): WhereFrame
s are shwon at the beginning.pos
(str): An initial position ofFrame
s.Frame
objects for showing