Design Pattern Examples
Overview of object-oriented design patterns
DesignPatternExamples_python.facade.facade_complicatedsubsystem Namespace Reference

Classes

class  DeviceChain
 Represents a device chain, which is a collection of DeviceNode objects. More...
 
class  DeviceNode
 
class  Facade_ComplicatedSubSystem
 Represents some kind of system that contains multiple device chains. More...
 

Functions

IDeviceNetworkLowLevel CreateLowLevelInstance ()
 Class factory for a singleton instance of the sub-system class as represented by the IDeviceNetworkLowLevel interface.
 

Variables

None _instance = None
 A singleton instance of the sub-system.
 

Function Documentation

◆ CreateLowLevelInstance()

IDeviceNetworkLowLevel CreateLowLevelInstance ( )

Class factory for a singleton instance of the sub-system class as represented by the IDeviceNetworkLowLevel interface.

Part of the Facade Pattern example.

Returns
Returns a singleton instance of the class.

Definition at line 303 of file facade_complicatedsubsystem.py.

Variable Documentation

◆ _instance

None _instance = None
protected

A singleton instance of the sub-system.

Part of the Facade pattern example.

Definition at line 294 of file facade_complicatedsubsystem.py.