9from .facadesubsystem_interface
import DeviceTypes, IDeviceNetworkLowLevel
24 def __init__(self, name: str, idcode: int, tapType: DeviceTypes, initiallyVisible: bool) ->
None:
60 numNodes = len(self.
_nodes)
63 for index
in range(1, numNodes):
64 if (bitMask & nodeSelectMask) != 0:
65 self.
_nodes[index].Visible = makeVisible
99 def AddNode(self, node : DeviceNode) ->
None:
100 if self.
_nodes and node.DeviceType == DeviceTypes.DEVICECONTROLLER:
102 self.
_nodes.insert(0, node)
112 if node.DeviceType != DeviceTypes.DEVICECONTROLLER:
148 idcodes.append(node.Idcode)
273 self.
_deviceChains[chainIndex].DeselectNodes(deviceselectMask)
288 idcodes = self.
_deviceChains[chainIndex].GetIdCodesForVisibleNodes()
static int GetNumChains(void)
Retrieve the number of device chains.
Represents a device chain, which is a collection of DeviceNode objects.
None DeselectNodes(self, int nodeSelectMask)
Make invisible one or more devices in the device chain.
_nodes
The list of TAPNodes on this device chain.
None SelectNodes(self, int nodeSelectMask)
Make visible one or more devices in the device chain.
None _ShowHideNodes(self, int nodeSelectMask, bool makeVisible)
Helper method to show or hide devices on the device chain.
list GetIdCodesForVisibleNodes(self)
Retrieve a list of idcodes for all devices that are visible in the device chain.
None AddNode(self, DeviceNode node)
Helper method to add a DeviceNode to the device chain.
IsLocked
Whether this device chain is locked for access.
Name
The Name of this device chain.
None ResetVisibility(self)
Resets the device chain so that all devices that are not CLdevices are no longer visible in the devic...
None __init__(self, str name)
Constructor.
Visible
Whether the device is visible in the device chain.
Idcode
The idcode for this device.
None __init__(self, str name, int idcode, DeviceTypes tapType, bool initiallyVisible)
DeviceType
A value from the DeviceTypes enumeration identifying the type of the device.
Represents some kind of system that contains multiple device chains.
bool UnlockDeviceChain(self, int chainIndex)
Unlock the specified device chain to indicate exclusive access is no longer desired.
_deviceChains
The list of device chains.
list GetIdcodes(self, int chainIndex)
Retrieve a list of idcodes for each device in the given device chain that is visible.
None ResetDeviceChain(self, int chainIndex)
Reset the visibility of all devices on the given device chain so that all devices except the first ar...
None __init__(self)
Constructor.
None DisableDevicesInDeviceChain(self, int chainIndex, int deviceselectMask)
Deselect one or more devices in the given device chain so those devices are no longer visible.
None EnableDevicesInDeviceChain(self, int chainIndex, int deviceselectMask)
Select one or more devices in the given device chain so those devices are visible.
bool LockDeviceChain(self, int chainIndex)
Lock the specified device chain to indicate exclusive access is desired.
IDeviceNetworkLowLevel CreateLowLevelInstance()
Class factory for a singleton instance of the sub-system class as represented by the IDeviceNetworkLo...