Design Pattern Examples
Overview of object-oriented design patterns
DeviceNode Class Reference

Represents a single device. Part of the Facade pattern example. More...

Collaboration diagram for DeviceNode:
Collaboration graph

Public Member Functions

 DeviceNode (string name, uint idcode, DeviceTypes tapType, bool initiallyVisible)
 Constructor.
 

Public Attributes

bool Visible
 Whether the device is visible in the device chain.
 
string Name
 Name of this device.
 
uint Idcode
 The idcode for this device.
 
DeviceTypes DeviceType
 A value from the DeviceTypes enumeration identifying the type of the device.
 

Detailed Description

Represents a single device. Part of the Facade pattern example.

Definition at line 48 of file Facade_ComplicatedSubSystem.cs.

Constructor & Destructor Documentation

◆ DeviceNode()

DeviceNode ( string  name,
uint  idcode,
DeviceTypes  tapType,
bool  initiallyVisible 
)
inline

Constructor.

Parameters
nameName to use.
idcodeidcode for the device.
tapTypeValue from the DeviceTypes enumeration.
initiallyVisibletrue if initially visible; otherwise false.

Definition at line 78 of file Facade_ComplicatedSubSystem.cs.

References DeviceNode.DeviceType, DeviceNode.Idcode, DeviceNode.Name, and DeviceNode.Visible.

Member Data Documentation

◆ DeviceType

DeviceTypes DeviceType

A value from the DeviceTypes enumeration identifying the type of the device.

Definition at line 69 of file Facade_ComplicatedSubSystem.cs.

Referenced by DeviceChain.AddNode(), DeviceNode.DeviceNode(), and DeviceChain.ResetVisibility().

◆ Idcode

uint Idcode

The idcode for this device.

Definition at line 63 of file Facade_ComplicatedSubSystem.cs.

Referenced by DeviceNode.DeviceNode(), and DeviceChain.GetIdCodesForVisibleNodes().

◆ Name

string Name

◆ Visible

bool Visible

Whether the device is visible in the device chain.

Definition at line 53 of file Facade_ComplicatedSubSystem.cs.

Referenced by DeviceNode.DeviceNode(), and DeviceChain.GetIdCodesForVisibleNodes().


The documentation for this class was generated from the following file: