Design Pattern Examples
Overview of object-oriented design patterns
Facade_Interfaces.cs
Go to the documentation of this file.
1
6
8{
20 public interface IDeviceNetworkLowLevel
21 {
27
33 bool LockDeviceChain(int chainIndex);
34
40 bool UnlockDeviceChain(int chainIndex);
41
46 void ResetDeviceChain(int chainIndex);
47
55 void EnableDevicesInDeviceChain(int chainIndex, uint devicesSelectMask);
56
64 void DisableDevicesInDeviceChain(int chainIndex, uint devicesSelectMask);
65
73 uint[] GetIdcodes(int chainIndex);
74 }
75
76
77 //########################################################################
78 //########################################################################
79
80
97 public interface IDeviceNetworkHighLevel
98 {
102 int NumChains { get; }
103
111 uint[] GetIdcodes(int chainIndex);
112
121 void EnableDevicesInDeviceChain(int chainIndex, uint selectMask);
122
128 void DisableDevicesInDeviceChain(int chainIndex);
129 }
130}
Represents a high level view of a complex network of device chains. A device chain can be thought of ...
void DisableDevicesInDeviceChain(int chainIndex)
Resets the given device chain so that all devices except the TAP controller is no longer visible.
int NumChains
The number of device chains available from the sub-system.
void EnableDevicesInDeviceChain(int chainIndex, uint selectMask)
Make visible certain devices in the given device chain. The selectMask value has a bit set for each T...
uint[] GetIdcodes(int chainIndex)
Returns a list of all idcodes from all selected devices in the given device chain.
Represents a network of device chains and the low level access to that network. In general,...
bool LockDeviceChain(int chainIndex)
Lock the specified device chain for exclusive access.
void ResetDeviceChain(int chainIndex)
Reset the visibility of all devices on the specified device chain.
void DisableDevicesInDeviceChain(int chainIndex, uint devicesSelectMask)
Make invisible the specified devices on the specified device chain.
int GetNumChains()
Retrieve the number of device chains available in the network.
void EnableDevicesInDeviceChain(int chainIndex, uint devicesSelectMask)
Make visible the specified devices on the specified device chain.
uint[] GetIdcodes(int chainIndex)
Retrieve a list of idcodes of all visible devices in the given device chain.
bool UnlockDeviceChain(int chainIndex)
Unlock the specified device chain to release exclusive access.
The namespace containing all Design Pattern Examples implemented in C#.