node-opcua-client-proxy 2.96.0 → 2.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,83 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @module node-opcua-client-proxy
4
- */
5
- import { EventEmitter } from "events";
6
- import { NodeClass } from "node-opcua-data-model";
7
- import { DataValue } from "node-opcua-data-value";
8
- import { NodeId } from "node-opcua-nodeid";
9
- import { Argument } from "node-opcua-service-call";
10
- import { DataType, Variant } from "node-opcua-variant";
11
- import { UAProxyManager } from "./proxy_manager";
12
- export interface ArgumentEx extends Argument {
13
- _basicDataType: DataType;
14
- }
15
- export interface MethodDescription {
16
- browseName: string;
17
- executableFlag: boolean;
18
- func: (input: Record<string, unknown>, callback: (err: Error | null, output?: Record<string, unknown>) => void) => void;
19
- nodeId: NodeId;
20
- inputArguments: ArgumentEx[];
21
- outputArguments: ArgumentEx[];
22
- }
23
- export declare class ProxyBaseNode extends EventEmitter {
24
- /**
25
- * the object nodeId
26
- * @property nodeId
27
- * @type {NodeId}
28
- */
29
- readonly nodeId: NodeId;
30
- /**
31
- * the object's components
32
- * @property $components
33
- * @type {Array<ProxyBaseNode>}
34
- */
35
- readonly $components: any[];
36
- /**
37
- * the object's properties
38
- * @property $properties
39
- * @type {Array<ProxyBaseNode>}
40
- */
41
- $properties: any[];
42
- /**
43
- * the object's properties
44
- * @property $methods
45
- * @type {Array<ProxyBaseNode>}
46
- */
47
- $methods: MethodDescription[];
48
- /**
49
- * the Folder's elements
50
- * @property $organizes
51
- * @type {Array<ProxyBaseNode>}
52
- */
53
- $organizes: any[];
54
- /**
55
- * the object's description
56
- * @property description
57
- * @type {String}
58
- */
59
- description: string;
60
- /**
61
- * the object's browseName
62
- * @property browseName
63
- * @type {String}
64
- */
65
- browseName: string;
66
- /**
67
- * the object's NodeClass
68
- * @property nodeClass
69
- * @type {NodeClass}
70
- */
71
- readonly nodeClass: NodeClass;
72
- private readonly proxyManager;
73
- constructor(proxyManager: UAProxyManager, nodeId: NodeId, nodeClass: NodeClass);
74
- /**
75
- * get a updated Value of the Variable , by using a ReadRequest
76
- */
77
- readValue(callback: (err: Error | null, variant?: Variant) => void): void;
78
- /**
79
- * set the Value of the Variable, by using a WriteRequest
80
- */
81
- writeValue(dataValue: DataValue, callback: (err?: Error) => void): void;
82
- toString(): string;
83
- }
@@ -1,88 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProxyBaseNode = void 0;
4
- /**
5
- * @module node-opcua-client-proxy
6
- */
7
- const events_1 = require("events");
8
- const node_opcua_assert_1 = require("node-opcua-assert");
9
- const node_opcua_data_model_1 = require("node-opcua-data-model");
10
- class ProxyBaseNode extends events_1.EventEmitter {
11
- constructor(proxyManager, nodeId, nodeClass) {
12
- super();
13
- this.nodeId = nodeId;
14
- this.proxyManager = proxyManager;
15
- (0, node_opcua_assert_1.assert)(this.proxyManager.session, "expecting valid session");
16
- Object.defineProperty(this, "proxyManager", {
17
- enumerable: false,
18
- writable: true
19
- });
20
- this.$components = [];
21
- this.$properties = [];
22
- this.$methods = [];
23
- this.$organizes = [];
24
- this.description = "";
25
- this.browseName = "";
26
- this.nodeClass = nodeClass;
27
- }
28
- /**
29
- * get a updated Value of the Variable , by using a ReadRequest
30
- */
31
- readValue(callback) {
32
- (0, node_opcua_assert_1.assert)(this.proxyManager);
33
- const session = this.proxyManager.session;
34
- (0, node_opcua_assert_1.assert)(session);
35
- const nodeToRead = {
36
- attributeId: node_opcua_data_model_1.AttributeIds.Value,
37
- nodeId: this.nodeId
38
- };
39
- this.proxyManager.session.read(nodeToRead, (err, dataValue) => {
40
- // istanbul ignore next
41
- if (err) {
42
- return callback(err);
43
- }
44
- const data = dataValue.value;
45
- callback(null, data);
46
- });
47
- }
48
- /**
49
- * set the Value of the Variable, by using a WriteRequest
50
- */
51
- writeValue(dataValue, callback) {
52
- (0, node_opcua_assert_1.assert)(this.proxyManager);
53
- const session = this.proxyManager.session;
54
- (0, node_opcua_assert_1.assert)(session);
55
- const nodeToWrite = {
56
- attributeId: node_opcua_data_model_1.AttributeIds.Value,
57
- nodeId: this.nodeId,
58
- value: dataValue
59
- };
60
- this.proxyManager.session.write(nodeToWrite, (err, statusCode) => {
61
- // istanbul ignore next
62
- if (err) {
63
- return callback(err);
64
- }
65
- if (statusCode && statusCode.isNotGood()) {
66
- callback(new Error(statusCode.toString()));
67
- }
68
- else {
69
- callback();
70
- }
71
- });
72
- }
73
- toString() {
74
- const str = [];
75
- str.push(" ProxyObject ");
76
- str.push(" browseName : " + this.browseName.toString());
77
- // str.push(" typeDefinition : " + this.typeDefinition.toString());
78
- str.push(" $components# : " + this.$components.length.toString());
79
- str.push(" $properties# : " + this.$properties.length.toString());
80
- return str.join("\n");
81
- }
82
- }
83
- exports.ProxyBaseNode = ProxyBaseNode;
84
- // tslint:disable:no-var-requires
85
- const thenify = require("thenify");
86
- ProxyBaseNode.prototype.readValue = thenify.withCallback(ProxyBaseNode.prototype.readValue);
87
- ProxyBaseNode.prototype.writeValue = thenify.withCallback(ProxyBaseNode.prototype.writeValue);
88
- //# sourceMappingURL=proxy_base_node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_base_node.js","sourceRoot":"","sources":["../source/proxy_base_node.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mCAAsC;AACtC,yDAA2C;AAC3C,iEAAgE;AAqBhE,MAAa,aAAc,SAAQ,qBAAY;IAoD3C,YAAY,YAA4B,EAAE,MAAc,EAAE,SAAoB;QAC1E,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAA,0BAAM,EAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC;QAC7D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE;YACxC,UAAU,EAA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AG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC"}
@@ -1,50 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @module node-opcua-client-proxy
4
- */
5
- import { EventEmitter } from "stream";
6
- import { NodeId } from "node-opcua-nodeid";
7
- import { DataValue, TimestampsToReturn } from "node-opcua-data-value";
8
- import { NodeIdLike } from "node-opcua-nodeid";
9
- import { CreateSubscriptionRequestOptions, MonitoringParametersOptions } from "node-opcua-service-subscription";
10
- import { CallbackT } from "node-opcua-status-code";
11
- import { ErrorCallback } from "node-opcua-status-code";
12
- import { IBasicSession } from "node-opcua-pseudo-session";
13
- import { ReadValueIdOptions } from "node-opcua-service-read";
14
- import { Variant } from "node-opcua-variant";
15
- import { ProxyStateMachineType } from "./state_machine_proxy";
16
- export interface IProxy1 {
17
- nodeId: NodeId;
18
- executableFlag?: boolean;
19
- __monitoredItem_execution_flag?: EventEmitter;
20
- __monitoredItem?: EventEmitter;
21
- }
22
- export interface IProxy extends EventEmitter, IProxy1 {
23
- dataValue: DataValue;
24
- }
25
- export interface IClientSubscription {
26
- monitor(itemToMonitor: ReadValueIdOptions, monitoringParameters: MonitoringParametersOptions, timestampToReturn: TimestampsToReturn, callback: CallbackT<IClientMonitoredItemBase>): void;
27
- terminate(callback: () => void): void;
28
- on(eventName: "terminated", eventHandler: () => void): void;
29
- }
30
- export interface IClientMonitoredItemBase {
31
- on(eventName: "changed", eventHandler: (data: DataValue | Variant[]) => void): void;
32
- }
33
- export interface IBasicSessionWithSubscription extends IBasicSession {
34
- createSubscription2(options: CreateSubscriptionRequestOptions, callback: CallbackT<IClientSubscription>): void;
35
- }
36
- export declare class UAProxyManager {
37
- readonly session: IBasicSessionWithSubscription;
38
- subscription?: IClientSubscription;
39
- private _map;
40
- constructor(session: IBasicSessionWithSubscription);
41
- start(): Promise<void>;
42
- start(callback: (err?: Error) => void): void;
43
- stop(): Promise<void>;
44
- stop(callback: (err?: Error) => void): void;
45
- getObject(nodeId: NodeIdLike): Promise<any>;
46
- getObject(nodeId: NodeIdLike, callback: (err: Error | null, object?: any) => void): void;
47
- _monitor_value(proxyObject: IProxy, callback: ErrorCallback): void;
48
- _monitor_execution_flag(proxyObject: IProxy1, callback: (err?: Error) => void): void;
49
- getStateMachineType(nodeId: NodeIdLike, callback: (err: Error | null, stateMachineType?: ProxyStateMachineType) => void): void;
50
- }
@@ -1,262 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UAProxyManager = void 0;
4
- const async = require("async");
5
- const node_opcua_assert_1 = require("node-opcua-assert");
6
- const node_opcua_data_model_1 = require("node-opcua-data-model");
7
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
8
- const node_opcua_data_value_1 = require("node-opcua-data-value");
9
- const node_opcua_status_code_1 = require("node-opcua-status-code");
10
- const object_explorer_1 = require("./object_explorer");
11
- const proxy_1 = require("./proxy");
12
- const proxy_object_1 = require("./proxy_object");
13
- const state_machine_proxy_1 = require("./state_machine_proxy");
14
- function getObject(proxyManager, nodeId, options, callback) {
15
- const session = proxyManager.session;
16
- nodeId = (0, node_opcua_nodeid_1.coerceNodeId)(nodeId);
17
- if (nodeId.isEmpty()) {
18
- setImmediate(() => {
19
- callback(new Error(" Invalid empty node in getObject"));
20
- });
21
- return;
22
- }
23
- const nodesToRead = [
24
- {
25
- attributeId: node_opcua_data_model_1.AttributeIds.BrowseName,
26
- nodeId
27
- },
28
- {
29
- attributeId: node_opcua_data_model_1.AttributeIds.Description,
30
- nodeId
31
- },
32
- {
33
- attributeId: node_opcua_data_model_1.AttributeIds.NodeClass,
34
- nodeId
35
- }
36
- ];
37
- function read_accessLevels(clientObject, callback) {
38
- const nodesToRead = [
39
- {
40
- attributeId: node_opcua_data_model_1.AttributeIds.Value,
41
- nodeId
42
- },
43
- {
44
- attributeId: node_opcua_data_model_1.AttributeIds.UserAccessLevel,
45
- nodeId
46
- },
47
- {
48
- attributeId: node_opcua_data_model_1.AttributeIds.AccessLevel,
49
- nodeId
50
- }
51
- ];
52
- session.read(nodesToRead, (err, dataValues) => {
53
- if (err) {
54
- return callback(err);
55
- }
56
- dataValues = dataValues || [];
57
- if (dataValues[0].statusCode.isGood()) {
58
- clientObject.dataValue = dataValues[0].value;
59
- }
60
- if (dataValues[1].statusCode.isGood()) {
61
- clientObject.userAccessLevel = (0, node_opcua_data_model_1.coerceAccessLevelFlag)(dataValues[1].value.value);
62
- }
63
- if (dataValues[2].statusCode.isGood()) {
64
- clientObject.accessLevel = (0, node_opcua_data_model_1.coerceAccessLevelFlag)(dataValues[2].value.value);
65
- }
66
- callback(err);
67
- });
68
- }
69
- let clientObject;
70
- async.series([
71
- (callback) => {
72
- // readAttributes like browseName and references
73
- session.read(nodesToRead, (err, dataValues) => {
74
- if (!err) {
75
- dataValues = dataValues;
76
- if (dataValues[0].statusCode.equals(node_opcua_status_code_1.StatusCodes.BadNodeIdUnknown)) {
77
- // xx console.log(" INVALID NODE ", nodeId.toString());
78
- return callback(new Error("Invalid Node " + nodeId.toString()));
79
- }
80
- clientObject = new proxy_object_1.ProxyObject(proxyManager, nodeId);
81
- /// x console.log("xxxx ,s",results.map(function(a){ return a.toString();}));
82
- clientObject.browseName = dataValues[0].value.value;
83
- clientObject.description = dataValues[1].value ? dataValues[1].value.value : "";
84
- clientObject.nodeClass = dataValues[2].value.value;
85
- // xx console.log("xxx nodeClass = ",clientObject.nodeClass.toString());
86
- if (clientObject.nodeClass === node_opcua_data_model_1.NodeClass.Variable) {
87
- return read_accessLevels(clientObject, callback);
88
- }
89
- }
90
- callback(err);
91
- });
92
- },
93
- (callback) => {
94
- // install monitored item
95
- if (clientObject.nodeClass === node_opcua_data_model_1.NodeClass.Variable) {
96
- /*console.log(
97
- "xxxx -> monitoring",
98
- clientObject.nodeId.toString(),
99
- clientObject.nodeClass.toString(),
100
- clientObject.browseName.toString()
101
- );
102
- */
103
- return proxyManager._monitor_value(clientObject, callback);
104
- }
105
- callback();
106
- },
107
- (callback) => {
108
- (0, object_explorer_1.readUAStructure)(proxyManager, clientObject, callback);
109
- }
110
- //
111
- ], (err) => {
112
- // istanbul ignore next
113
- if (err) {
114
- return callback(err);
115
- }
116
- callback(null, clientObject);
117
- });
118
- }
119
- // tslint:disable-next-line: max-classes-per-file
120
- class UAProxyManager {
121
- constructor(session) {
122
- this.session = session;
123
- this._map = {};
124
- // create a subscription
125
- }
126
- start(...args) {
127
- const callback = args[0];
128
- const createSubscriptionRequest = {
129
- maxNotificationsPerPublish: 1000,
130
- priority: 10,
131
- publishingEnabled: true,
132
- requestedLifetimeCount: 6000,
133
- requestedMaxKeepAliveCount: 100,
134
- requestedPublishingInterval: 100
135
- };
136
- this.session.createSubscription2(createSubscriptionRequest, (err, subscription) => {
137
- if (err) {
138
- return callback(err);
139
- }
140
- this.subscription = subscription;
141
- this.subscription.on("terminated", () => {
142
- this.subscription = undefined;
143
- });
144
- callback();
145
- });
146
- }
147
- stop(...args) {
148
- const callback = args[0];
149
- if (this.subscription) {
150
- this.subscription.terminate(() => {
151
- this.subscription = undefined;
152
- callback();
153
- });
154
- }
155
- else {
156
- callback(new Error("UAProxyManager already stopped ?"));
157
- }
158
- }
159
- getObject(...args) {
160
- const nodeId = args[0];
161
- const callback = args[1];
162
- let options = {};
163
- setImmediate(() => {
164
- options = options || {};
165
- options.depth = options.depth || 1;
166
- const key = nodeId.toString();
167
- // the object already exist in the map ?
168
- if (Object.prototype.hasOwnProperty.call(this._map, key)) {
169
- return callback(null, this._map[key]);
170
- }
171
- getObject(this, nodeId, options, (err, obj) => {
172
- if (!err) {
173
- this._map[key] = obj;
174
- }
175
- callback(err, obj);
176
- });
177
- });
178
- }
179
- _monitor_value(proxyObject, callback) {
180
- if (!this.subscription) {
181
- // debugLog("cannot monitor _monitor_value: no subscription");
182
- // some server do not provide subscription support, do not treat this as an error.
183
- return callback(); // new Error("No subscription"));
184
- }
185
- const itemToMonitor = {
186
- // ReadValueId
187
- attributeId: node_opcua_data_model_1.AttributeIds.Value,
188
- nodeId: proxyObject.nodeId
189
- };
190
- const monitoringParameters = {
191
- // MonitoringParameters
192
- discardOldest: true,
193
- queueSize: 10,
194
- samplingInterval: 0 /* event-based */
195
- };
196
- const requestedParameters = node_opcua_data_value_1.TimestampsToReturn.Both;
197
- this.subscription.monitor(itemToMonitor, monitoringParameters, requestedParameters, (err, monitoredItem) => {
198
- Object.defineProperty(proxyObject, "__monitoredItem", { value: monitoredItem, enumerable: false });
199
- proxyObject.__monitoredItem.on("changed", (dataValue) => {
200
- proxyObject.dataValue = dataValue;
201
- proxyObject.emit("value_changed", dataValue);
202
- });
203
- proxyObject.__monitoredItem.on("err", (err) => {
204
- var _a;
205
- // tslint:disable-next-line: no-console
206
- console.log("Proxy: cannot monitor variable ", (_a = itemToMonitor.nodeId) === null || _a === void 0 ? void 0 : _a.toString(), err.message);
207
- });
208
- callback(err);
209
- });
210
- }
211
- _monitor_execution_flag(proxyObject, callback) {
212
- // note : proxyObject must wrap a method
213
- (0, node_opcua_assert_1.assert)(proxyObject.nodeId instanceof node_opcua_nodeid_1.NodeId);
214
- if (!this.subscription) {
215
- // some server do not provide subscription support, do not treat this as an error.
216
- return callback(); // new Error("No subscription"));
217
- }
218
- const itemToMonitor = {
219
- // ReadValueId
220
- attributeId: node_opcua_data_model_1.AttributeIds.Executable,
221
- nodeId: proxyObject.nodeId
222
- };
223
- const monitoringParameters = {
224
- // MonitoringParameters
225
- discardOldest: true,
226
- queueSize: 10,
227
- samplingInterval: 0 /* event-based */
228
- };
229
- const requestedParameters = node_opcua_data_value_1.TimestampsToReturn.Neither;
230
- this.subscription.monitor(itemToMonitor, monitoringParameters, requestedParameters, (err, monitoredItem) => {
231
- Object.defineProperty(proxyObject, "__monitoredItem_execution_flag", {
232
- value: monitoredItem,
233
- enumerable: false
234
- });
235
- proxyObject.__monitoredItem_execution_flag.on("changed", (dataValue) => {
236
- proxyObject.executableFlag = dataValue.value.value;
237
- });
238
- callback(err);
239
- });
240
- }
241
- getStateMachineType(nodeId, callback) {
242
- if (typeof nodeId === "string") {
243
- const org_nodeId = nodeId;
244
- nodeId = (0, proxy_1.makeRefId)(nodeId);
245
- }
246
- this.getObject(nodeId, (err, obj) => {
247
- // read fromState and toState Reference on
248
- let stateMachineType;
249
- if (!err) {
250
- stateMachineType = new state_machine_proxy_1.ProxyStateMachineType(obj);
251
- }
252
- callback(err, stateMachineType);
253
- });
254
- }
255
- }
256
- exports.UAProxyManager = UAProxyManager;
257
- // tslint:disable-next-line:no-var-requires
258
- const thenify = require("thenify");
259
- UAProxyManager.prototype.start = thenify.withCallback(UAProxyManager.prototype.start);
260
- UAProxyManager.prototype.stop = thenify.withCallback(UAProxyManager.prototype.stop);
261
- UAProxyManager.prototype.getObject = thenify.withCallback(UAProxyManager.prototype.getObject);
262
- //# sourceMappingURL=proxy_manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_manager.js","sourceRoot":"","sources":["../source/proxy_manager.ts"],"names":[],"mappings":";;;AAKA,+BAA+B;AAC/B,yDAA2C;AAE3C,iEAAuF;AACvF,yDAAyD;AACzD,iEAAsE;AAGtE,mEAA4E;AAM5E,uDAAoD;AACpD,mCAAoC;AAEpC,iDAA6C;AAC7C,+DAA8D;AAW9D,SAAS,SAAS,CAAC,YAA4B,EAAE,MAA2B,EAAE,OAAY,EAAE,QAAa;IACrG,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;IAErC,MAAM,GAAG,IAAA,gCAAY,EAAC,MAAM,CAAW,CAAC;IAExC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE;QAClB,YAAY,CAAC,GAAG,EAAE;YACd,QAAQ,CAAC,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QACH,OAAO;KACV;IAED,MAAM,WAAW,GAAG;QAChB;YACI,WAAW,EAAE,oCAAY,CAAC,UAAU;YACpC,MAAM;SACT;QACD;YACI,WAAW,EAAE,oCAAY,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C,MAAM,CAAC,CAAC;SAC9B;QAED,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,GAAiB,EAAE,GAAQ,EAAE,EAAE;YACnD,0CAA0C;YAC1C,IAAI,gBAAgB,CAAC;YACrB,IAAI,CAAC,GAAG,EAAE;gBACN,gBAAgB,GAAG,IAAI,2CAAqB,CAAC,GAAG,CAAC,CAAC;aACrD;YACD,QAAQ,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAtLD,wCAsLC;AAED,2CAA2C;AAC3C,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACnC,cAAc,CAAC,SAAS,CAAC,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACtF,cAAc,CAAC,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACpF,cAAc,CAAC,SAAS,CAAC,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import { NodeId } from "node-opcua-nodeid";
2
- import { ProxyBaseNode } from "./proxy_base_node";
3
- import { UAProxyManager } from "./proxy_manager";
4
- export declare class ProxyObject extends ProxyBaseNode {
5
- constructor(proxyManager: UAProxyManager, nodeId: NodeId);
6
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProxyObject = void 0;
4
- /**
5
- * @module node-opcua-client-proxy
6
- */
7
- const node_opcua_data_model_1 = require("node-opcua-data-model");
8
- const proxy_base_node_1 = require("./proxy_base_node");
9
- class ProxyObject extends proxy_base_node_1.ProxyBaseNode {
10
- constructor(proxyManager, nodeId) {
11
- super(proxyManager, nodeId, node_opcua_data_model_1.NodeClass.Object);
12
- }
13
- }
14
- exports.ProxyObject = ProxyObject;
15
- //# sourceMappingURL=proxy_object.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_object.js","sourceRoot":"","sources":["../source/proxy_object.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,iEAAkD;AAElD,uDAAkD;AAGlD,MAAa,WAAY,SAAQ,+BAAa;IAC1C,YAAY,YAA4B,EAAE,MAAc;QACpD,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,iCAAS,CAAC,MAAM,CAAC,CAAC;IAClD,CAAC;CACJ;AAJD,kCAIC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * @module node-opcua-client-proxy
3
- */
4
- import { NodeId } from "node-opcua-nodeid";
5
- import { ProxyNode } from "./proxy_transition";
6
- export declare class ProxyState {
7
- private _node;
8
- constructor(proxyNode: ProxyNode);
9
- get browseName(): string;
10
- get stateNumber(): string;
11
- get nodeId(): NodeId;
12
- toString(): string;
13
- }
14
- export declare function makeProxyState(node: ProxyNode): ProxyState;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.makeProxyState = exports.ProxyState = void 0;
4
- class ProxyState {
5
- constructor(proxyNode) {
6
- this._node = proxyNode;
7
- }
8
- get browseName() {
9
- return this._node.browseName.toString();
10
- }
11
- get stateNumber() {
12
- // note stateNumber has no real dataValue
13
- return this._node.stateNumber.nodeId.value.toString();
14
- }
15
- get nodeId() {
16
- // note stateNumber has no real dataValue
17
- return this._node.nodeId;
18
- }
19
- toString() {
20
- return "state " + this.browseName + " stateNumber :" + this.stateNumber.toString();
21
- }
22
- }
23
- exports.ProxyState = ProxyState;
24
- function makeProxyState(node) {
25
- return new ProxyState(node);
26
- }
27
- exports.makeProxyState = makeProxyState;
28
- //# sourceMappingURL=proxy_state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_state.js","sourceRoot":"","sources":["../source/proxy_state.ts"],"names":[],"mappings":";;;AAMA,MAAa,UAAU;IAGnB,YAAY,SAAoB;QAC5B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;IAED,IAAW,WAAW;QAClB,yCAAyC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1D,CAAC;IAED,IAAW,MAAM;QACb,yCAAyC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC7B,CAAC;IAEM,QAAQ;QACX,OAAO,QAAQ,GAAG,IAAI,CAAC,UAAU,GAAG,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;IACvF,CAAC;CACJ;AAxBD,gCAwBC;AAED,SAAgB,cAAc,CAAC,IAAe;IAC1C,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAFD,wCAEC"}
@@ -1,12 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @module node-opcua-client-proxy
4
- */
5
- import { EventEmitter } from "events";
6
- import { NodeId } from "node-opcua-nodeid";
7
- import { UAProxyManager } from "./proxy_manager";
8
- export declare class StateMachineProxy extends EventEmitter {
9
- nodeId: NodeId;
10
- private proxyManager;
11
- constructor(proxyManager: UAProxyManager, nodeId: NodeId);
12
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StateMachineProxy = void 0;
4
- /**
5
- * @module node-opcua-client-proxy
6
- */
7
- const events_1 = require("events");
8
- const node_opcua_assert_1 = require("node-opcua-assert");
9
- class StateMachineProxy extends events_1.EventEmitter {
10
- constructor(proxyManager, nodeId) {
11
- super();
12
- this.nodeId = nodeId;
13
- this.proxyManager = proxyManager;
14
- (0, node_opcua_assert_1.assert)(this.proxyManager.session, "expecting valid session");
15
- Object.defineProperty(this, "proxyManager", {
16
- enumerable: false,
17
- writable: true
18
- });
19
- }
20
- }
21
- exports.StateMachineProxy = StateMachineProxy;
22
- //# sourceMappingURL=proxy_state_machine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proxy_state_machine.js","sourceRoot":"","sources":["../source/proxy_state_machine.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mCAAsC;AACtC,yDAA2C;AAI3C,MAAa,iBAAkB,SAAQ,qBAAY;IAI/C,YAAY,YAA4B,EAAE,MAAc;QACpD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAA,0BAAM,EAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC;QAC7D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE;YACxC,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,IAAI;SACjB,CAAC,CAAC;IACP,CAAC;CACJ;AAdD,8CAcC"}
@@ -1,24 +0,0 @@
1
- import { QualifiedName } from "node-opcua-data-model";
2
- import { NodeId } from "node-opcua-nodeid";
3
- export interface ProxyNode {
4
- nodeId: NodeId;
5
- browseName: QualifiedName;
6
- $fromState: ProxyNode;
7
- $toState: ProxyNode;
8
- $components: ProxyNode[];
9
- typeDefinition?: {
10
- toString(): string;
11
- };
12
- }
13
- /**
14
- * @module node-opcua-client-proxy
15
- */
16
- export declare class ProxyTransition {
17
- private _node;
18
- constructor(proxyNode: ProxyNode);
19
- get nodeId(): string;
20
- get browseName(): string;
21
- get fromStateNode(): ProxyNode;
22
- get toStateNode(): ProxyNode;
23
- }
24
- export declare function makeProxyTransition(node: ProxyNode): ProxyTransition;