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: Подсистема может принимать запросы либо от фасада, либо от клиента напрямую. В любом случа
| 63 | |
| 64 | |
| 65 | class 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 | |
| 85 | class Subsystem2: |