Class DummyConnector
Provides a connector without real target system connections.
Inherited Members
Namespace: Vortex.Connector
Assembly: Vortex.Connector.dll
Syntax
public class DummyConnector : IConnector, IVortexObject, ITwinObject, IVortexElement, INotifyPropertyChanged
Fields
_onlineTags
Declaration
IEnumerable<IValueTag> _onlineTags
Field Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IValueTag> |
Properties
ErrorCount
Gets or sets error counter of the adapter.
Declaration
public override int ErrorCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
OnlineTags
Gets online value items tags attached to this connector.
Declaration
public override IEnumerable<IValueTag> OnlineTags { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IValueTag> |
Overrides
Methods
BuildAndStart()
This method does not have effect on DummyConnector
Declaration
public override IConnector BuildAndStart()
Returns
Type | Description |
---|---|
IConnector |
Overrides
InvokeRpc(String, String, Object[])
This method does not have effect on DummyConnector
Declaration
public override object InvokeRpc(string symbolPath, string methodName, object[] params)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbolPath | Symbol path of the block whit remotely invokable method |
System.String | methodName | Method name. NOTE: Method must have attribute 'TcRpcEnable' declared.} |
System.Object[] | params | Method's parameters. NOTE: Only value type parameters are accepted. |
Returns
Type | Description |
---|---|
System.Object | Result of the remotely called method. NOTE:Only value types are allowed as return values. |
Overrides
ReadBatch(IEnumerable<IValueTag>)
Reads batch of value items from the plc.
Declaration
public override void ReadBatch(IEnumerable<IValueTag> valueTags)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IValueTag> | valueTags | Value items to be read. |
Overrides
ReloadConnector()
This method does not have effect on dummy connector.
Declaration
public override void ReloadConnector()
Overrides
WriteBatch(IEnumerable<IValueTag>)
Writes batch of value items to the plc.
Declaration
public override void WriteBatch(IEnumerable<IValueTag> valueTags)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IValueTag> | valueTags | Value items to be written. |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged