MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / Subsystem1

Class Subsystem1

src/Facade/Conceptual/main.py:65–82  ·  view source on GitHub ↗

EN: The Subsystem can accept requests either from the facade or client directly. In any case, to the Subsystem, the Facade is yet another client, and it's not a part of the Subsystem. RU: Подсистема может принимать запросы либо от фасада, либо от клиента напрямую. В любом случа

Source from the content-addressed store, hash-verified

63
64
65class Subsystem1:
66 """
67 EN: The Subsystem can accept requests either from the facade or client
68 directly. In any case, to the Subsystem, the Facade is yet another client,
69 and it's not a part of the Subsystem.
70
71 RU: Подсистема может принимать запросы либо от фасада, либо от клиента
72 напрямую. В любом случае, для Подсистемы Фасад – это ещё один клиент, и он
73 не является частью Подсистемы.
74 """
75
76 def operation1(self) -> str:
77 return "Subsystem1: Ready!"
78
79 # ...
80
81 def operation_n(self) -> str:
82 return "Subsystem1: Go!"
83
84
85class Subsystem2:

Callers 2

__init__Method · 0.85
main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected