Show / Hide Table of Contents

Class DeviceFactoryStubBase

The abstract base class for all device factory stubs.

Inheritance
System.Object
DeviceFactoryStubBase
DefaultDeviceFactoryStub
Namespace: Phoenix.Test.DeviceMockSystem
Assembly: Phoenix.Test.Infrastructure.dll
Syntax
public abstract class DeviceFactoryStubBase : IDeviceFactory

Constructors

View Source

DeviceFactoryStubBase(DeviceStubExporter, String)

Initializes a new instance of the DeviceFactoryStubBase class.

Declaration
protected DeviceFactoryStubBase(DeviceStubExporter exporter, string deviceName)
Parameters
Type Name Description
DeviceStubExporter exporter

The device stub exporter.

System.String deviceName

The name of the device.

Properties

View Source

DeviceTypeAliases

Declaration
public IEnumerable<string> DeviceTypeAliases { get; protected set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>
View Source

DeviceTypeDisplayName

Gets or sets the display name of the device.

Declaration
public string DeviceTypeDisplayName { get; protected set; }
Property Value
Type Description
System.String
View Source

DeviceTypeName

Gets or sets the name of the device.

Declaration
public string DeviceTypeName { get; protected set; }
Property Value
Type Description
System.String
View Source

IconUri

Gets or sets a value representing the URI for the device type icon.

Declaration
public Uri IconUri { get; protected set; }
Property Value
Type Description
System.Uri

Methods

View Source

CreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)

Creates an instance of the device from an IP Address.

Declaration
public IDevice CreateDeviceInstance(IPAddress address, string name, string alias, string configType, string configuration, string deviceId, Guid phoenixId)
Parameters
Type Name Description
System.Net.IPAddress address

The IP address of the device.

System.String name

The name of the device if known.

System.String alias

The alias of the device if known.

System.String configType

Device specific configuration type.

System.String configuration

Device specific configuration string.

System.String deviceId

The expected device id that will be matched to the id the device provides.

System.Guid phoenixId

The id for the device

Returns
Type Description
IDevice

The created device.

  • View Source
In This Article
Back to top Generated by DocFX