Design Pattern Examples
Overview of object-oriented design patterns
facade_interface.py
Go to the documentation of this file.
6
7from abc import ABC, abstractmethod
8
9
10
25
26 @abstractmethod
27 def GetNumChains(self) -> int:
28 pass
29
30
38 @abstractmethod
39 def GetIdcodes(self, chainIndex: int) -> list:
40 pass
41
42
51 @abstractmethod
52 def EnableDevicesInDeviceChain(self, chainIndex : int, selectMask: int) -> None:
53 pass
54
55
60 @abstractmethod
61 def DisableDevicesInDeviceChain(self, chainIndex : int) -> None:
62 pass
63
static int GetNumChains(void)
Retrieve the number of device chains.
Represents a high level view of a complex network of device chains.
list GetIdcodes(self, int chainIndex)
Returns a list of all idcodes from all selected devices in the given device chain.
None DisableDevicesInDeviceChain(self, int chainIndex)
Resets the given device chain so that all devices except the TAP controller is no longer visible.
None EnableDevicesInDeviceChain(self, int chainIndex, int selectMask)
Make visible certain devices in the given device chain.