Bridge API Documentation
- class Implementor[source]
Bases:
ABCDefines the interface for the implementation in the Bridge Pattern.
- class ConcreteImplementorA[source]
Bases:
ImplementorProvides a specific implementation of the Implementor interface.
- class ConcreteImplementorB[source]
Bases:
ImplementorProvides another specific implementation of the Implementor interface.
- class Abstraction(implementor)[source]
Bases:
objectDefines the abstraction in the Bridge Pattern. Works independently of the implementation.
- Parameters:
implementor (Implementor)
- __init__(implementor)[source]
Initializes the abstraction with a given implementor.
- Parameters:
implementor (
Implementor) – The concrete implementor to bridge with.- Return type:
None
- class RefinedAbstraction(implementor)[source]
Bases:
AbstractionExtends the base abstraction to add more behavior.
- Parameters:
implementor (Implementor)