AddReferencesStream
Expression Extends:
class AddReferencesStream extends waitForDependencies(CallScriptStream)
A stream that adds non-standard references to nodes when pushed.
Test:
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) Creates a new stream for adding references to pushed nodes. |
Member Summary
Public Members | ||
public get |
Id of the CreateNode script added with |
Private Members | ||
private |
A stack of NodeId#values to be retried afterwards. |
Method Summary
Public Methods | ||
public |
dependenciesFor(file: AtviseFile): NodeId[] Returns the referenced nodes that should be processed before the given file. |
|
public |
handleOutputArguments(file: AtviseFile, outArgs: node-opcua~Variant[], callback: function(err: Error)) Handles the results of a script call. |
|
public |
processErrorMessage(file: AtviseFile): string Prints an error message telling that adding one or more references failed. |
|
public |
referencesToAdd(file: AtviseFile): Object Returns the references that need to be set for a file. |
|
public |
scriptParameters(file: AtviseFile): Object The options required to add references to the node for the given file. |
Public Constructors
public constructor(options: Object) source
Creates a new stream for adding references to pushed nodes.
Params:
Name | Type | Attribute | Description |
options | Object | The options to pass to the CallScriptStream. |
Public Members
Private Members
Public Methods
public dependenciesFor(file: AtviseFile): NodeId[] source
Returns the referenced nodes that should be processed before the given file.
Params:
Name | Type | Attribute | Description |
file | AtviseFile | The file to check. |
public handleOutputArguments(file: AtviseFile, outArgs: node-opcua~Variant[], callback: function(err: Error)) source
Handles the results of a script call.
Params:
Name | Type | Attribute | Description |
file | AtviseFile | The file the script was called with. |
|
outArgs | node-opcua~Variant[] | The raw method results. |
|
callback | function(err: Error) | Called once finished. |
public processErrorMessage(file: AtviseFile): string source
Prints an error message telling that adding one or more references failed.
Params:
Name | Type | Attribute | Description |
file | AtviseFile | The file who's node could not be created. |
public referencesToAdd(file: AtviseFile): Object source
Returns the references that need to be set for a file.
Params:
Name | Type | Attribute | Description |
file | AtviseFile | The file to check. |
public scriptParameters(file: AtviseFile): Object source
The options required to add references to the node for the given file.
Params:
Name | Type | Attribute | Description |
file | AtviseFile | The processed file. |