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

Class Component2

src/Mediator/Conceptual/main.py:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92class Component2(BaseComponent):
93 def do_c(self) -> None:
94 print("Component 2 does C.")
95 self.mediator.notify(self, "C")
96
97 def do_d(self) -> None:
98 print("Component 2 does D.")
99 self.mediator.notify(self, "D")
100
101
102if __name__ == "__main__":

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected