-
Notifications
You must be signed in to change notification settings - Fork 6
/
logic_sender_controller.py
43 lines (36 loc) · 1.84 KB
/
logic_sender_controller.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#######################################################
#
# core_name_controller.py
# Python implementation of the Class logic
# Generated by Enterprise Architect
# Created on: 16-Dec-2022 10:56:02 AM
# Original author: Giu Platania
#
#######################################################
from digitalpy.core.digipy_configuration.configuration import Configuration
from digitalpy.core.main.controller import Controller
from digitalpy.core.zmanager.action_mapper import ActionMapper
from digitalpy.core.zmanager.request import Request
from digitalpy.core.zmanager.response import Response
class LogicSenderController(Controller):
"""contains all the business logic of this core package
"""
def __init__(self, request: Request, response: Response, action_mapper: ActionMapper, configuration: Configuration):
"""the constructor of the Logic Sender Controller class
Args:
request (Request): the request object to be passed to the base class. Not used currently
response (Response): the response object to be passed to the base class. Not used currently
action_mapper (ActionMapper): the action_mapper object to be used for sub_requests passed to the base class. Not used currently
configuration (Configuration): the configuration object passed to the base class. Not used currently
"""
super().__init__(request=request, response=response, action_mapper=action_mapper, configuration=configuration)
def broadcast_logic(self, event: object):
"""the core broadcasting logic of the component
Args:
event (object): the event to be broadcasted
"""
def execute(self, method: str = None):
"""the base execution method of the component
Args:
method (str, optional): the name of the method. Defaults to None.
"""