Dm |
public sealed class DmXioDirectorEnterprise : DmXioDirectorBase
The DmXioDirectorEnterprise type exposes the following members.
| Name | Description | |
|---|---|---|
| DmXioDirectorEnterprise | Constructor for DmXioDirectorEnterprise that uses Ethernet as interface. |
| Name | Description | |
|---|---|---|
| ConnectedIpList |
A property containing the list of the ConnectedIpInformation objects which contain information about the devices that are connected to this IP ID.
This property is only valid for an ethernet device. If this is not an ethernet device, then this property will return null.
If this is an ethernet device, the list will be non-null. It will be empty if no devices are connected.
The order of items in this list is not guaranteed.
(Inherited from GenericDevice) | |
| Description |
Get/Set the description of this device.
(Inherited from GenericBase) | |
| DeviceFunctions |
Device Functions property of this device.
(Inherited from DmXioDirectorBase) | |
| Disposed |
Property to indicate if the Device has been disposed.
use this from the base GenericDevice...
(Inherited from DmXioDirectorBase) | |
| DmXioDirectorType |
Property to retrieve the type of XiO Director that has been instantiated. See eDmXioDirectorType for further details.
(Inherited from DmXioDirectorBase) | |
| Domain |
Collection of Domains.
(Inherited from DmXioDirectorBase) | |
| GlobalDomain |
Global Domain property of this device.
(Inherited from DmXioDirectorBase) | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| MaximumNumberOfDomains |
This property will return the maximum number of domains allowed on the given XiO Director.
(Inherited from DmXioDirectorBase) | |
| MaximumNumberOfEndpoints |
This property will return the maximum number of endpoints allowed across all domains on a given XiO director.
(Inherited from DmXioDirectorBase) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| Parent |
The parent that a given object was added to.
(Inherited from GenericBase) | |
| Registerable |
Property to indicate that this device can be registered.
(Inherited from GenericDevice) | |
| Registered |
Property to get the current registration state of the device.
(Inherited from GenericDevice) | |
| RegistrationFailureReason |
Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice) | |
| SIMPLDeviceImplementation |
Internal protected member used for actual device control.
(Inherited from GenericDevice) | |
| TotalNumberOfDomains |
Property to report the total number of domains defined in the system.
(Inherited from DmXioDirectorBase) | |
| TotalNumberOfEndpoints |
Property to report the total number of endpoints in the system.
(Inherited from DmXioDirectorBase) | |
| TotalNumberOfReceiverEndpoints |
Property to report the total number of receiver endpoints in the system.
Note: This only reports endpoints added to the director from the current user program
(Inherited from DmXioDirectorBase) | |
| TotalNumberOfTransmitterEndpoints |
Property to report the total number of transmitter endpoints in the system.
Note: This only reports endpoints added to the director from the current user program
(Inherited from DmXioDirectorBase) | |
| Type |
Property to determine to type of device this is.
(Inherited from GenericDevice) | |
| UnRegistrationFailureReason |
Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from GenericBase) | |
| XioEndpointStubSIMPLDevice |
The SIMPL "stub" Device that the XiO Director creates for an endpoint to send the 1C/0E to the
correct place in hierarchy.
(Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| Dispose |
Clean up of resources.
(Inherited from GenericBase) | |
| Dispose(Boolean) |
This will remove all domains and the endpoints.
(Inherited from DmXioDirectorBase) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor of the XiO Director will make sure to dispose of everything.
(Inherited from DmXioDirectorBase) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| OnBaseEvent(Int32) |
Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase) | |
| OnBaseEvent(Int32, UInt16) |
Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase) | |
| Register |
This will Register the XiO Director and any endpoints that have been created under the domain(s).
If you add endpoints after calling Register() on the XiO Director, you will have to call UnRegister() and then
Register() again to make sure the XiO Director is refreshed with the correct endpoint information.
(Inherited from DmXioDirectorBase) | |
| ToString |
String representation of the DmXioDirectorEnterprise.
(Overrides GenericDeviceToString) | |
| UnRegister |
Unregister this device with the system. This function can not be called from the device's own SigChange event handler.
On successful unregistration, if this device supports the OnlineStatusChange event, it will trigger indicating the device when offline. (Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| BaseEvent |
Generic base event, triggered when the there are no other handlers available
for a specific EventID.
(Inherited from GenericBase) | |
| IpInformationChange |
Event that tells what IP Address is connected/disconnected from an IP ID for a non-UDP device.
This is only valid for an Ethernet device. An exception will be thrown if it is not.
(Inherited from GenericDevice) | |
| OnlineStatusChange |
Event triggered when the Online status of the device changes.
(Inherited from GenericDevice) |
static DmXioDirectorBase _xioDirector; public ControlSystemDmXioDirectorXXX() { //Register console commands CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a DM-XIO-DIRECTOR-XXX CreateDevice command", ConsoleAccessLevelEnum.AccessOperator); CrestronConsole.AddNewConsoleCommand(CreateDomainsCmd, "CreateDomains", "This is a DM-XIO-DIRECTOR-XXX CreateDomains command", ConsoleAccessLevelEnum.AccessOperator); CrestronConsole.AddNewConsoleCommand(DisposeDomainsCmd, "DisposeDomains", "This is a DM-XIO-DIRECTOR-XXX DisposeDomains command", ConsoleAccessLevelEnum.AccessOperator); CrestronConsole.AddNewConsoleCommand(CreateEndpointsCmd, "CreateEndpoints", "This is a DM-XIO-DIRECTOR-XXX CreateEndpoints command", ConsoleAccessLevelEnum.AccessOperator); CrestronConsole.AddNewConsoleCommand(DisposeEndpointsCmd, "DisposeEndpoints", "This is a DM-XIO-DIRECTOR-XXX DisposeEndpoints command", ConsoleAccessLevelEnum.AccessOperator); } //Method to dispose endpoints public void DisposeEndpointsCmd(string args) { foreach (var domain in _xioDirector.Domain) { foreach (var endpoint in domain.TransmitterEndpoints) { endpoint.Dispose(); CrestronEnvironment.AllowOtherAppsToRun(); } CrestronConsole.PrintLine("Total Number Of Transmitter Endpoints {0}- For Domain {1}", _xioDirector.TotalNumberOfTransmitterEndpoints, domain.ToString()); foreach (var endpoint in domain.ReceiverEndpoints) { endpoint.Dispose(); CrestronEnvironment.AllowOtherAppsToRun(); } CrestronConsole.PrintLine("Total Number Of Receiver Endpoints {0} - For Domain {1}", _xioDirector.TotalNumberOfReceiverEndpoints, domain.ToString()); } } //Method to create endpoints public void CreateEndpointsCmd(string args) { foreach (var domain in _xioDirector.Domain) { for (uint i = 1; i <= 10; i++) { var endpoint = new DmNvx350C(i, domain, true); CrestronEnvironment.AllowOtherAppsToRun(); } for (uint i = 1; i <= 10; i++) { var txrx = new DmTxRx100Str(i, domain, false); CrestronEnvironment.AllowOtherAppsToRun(); } } } //Method to create domains public void CreateDomainsCmd(String args) { uint i; for (i = 1; i <= 10; i++) { var domain = new DmXioDirectorBase.DmXioDomain(i, _xioDirector); CrestronEnvironment.AllowOtherAppsToRun(); } CrestronConsole.ConsoleCommandResponse("{0} Domains added successfully\r\n", i - 1); } //Method to dispose the domains created public void DisposeDomainsCmd(String args) { foreach (var domain in _xioDirector.Domain) { domain.Dispose(); } CrestronConsole.ConsoleCommandResponse("Domains disposed successfully\r\n"); } //Method to create the DM-XIO-DIRECTOR device object public void CreateDeviceCmd(String args) { _xioDirector = new DmXioDirectorEnterprise(220, this); _xioDirector.DeviceFunctions.DeviceFunctionChange += XioDirectorDeviceFunctionChangeEvent; _xioDirector.Register(); CrestronConsole.ConsoleCommandResponse("{0} device successfully registered\r\n", _xioDirector.ToString()); } //Method to handle the Device Functions Sig change event of DM-XIO-DIRECTOR-XXX static void XioDirectorDeviceFunctionChangeEvent(object sender, GenericEventArgs args) { if (args.EventId == DmXioDirectorBase.DeviceFailedEventId) { CrestronConsole.PrintLine("{0} Device Failed event occurred for Device Functions. EquipmentType is {1} Value is {2}.\r\n", _xioDirector, args.Index, _xioDirector.DeviceFunctions.DeviceStatusCollection[args.Index].FailedFeedback.BoolValue); } else if (args.EventId == DmXioDirectorBase.SystemTemperatureFeedbackEventId) { CrestronConsole.PrintLine("{0} System Temperature Feedback event occurred for Device Functions. Value is {1}.\r\n", _xioDirector, _xioDirector.DeviceFunctions.SystemTemperatureFeedback.UShortValue); } }