C# Class Opc.Ua.BaseInstanceState

The base class for all instance nodes.
Inheritance: NodeState, IFilterTarget
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Méthode Description
GetAttributeValue ( FilterContext context, Opc.Ua.NodeId typeDefinitionId, IList relativePath, uint attributeId, NumericRange indexRange ) : object
GetAttributesToSave ( ISystemContext context ) : AttributesToSave

Returns a mask which indicates which attributes have non-default value.

GetDefaultTypeDefinitionId ( ISystemContext context ) : Opc.Ua.NodeId

Returns the id of the default type definition node for the instance.

GetDisplayPath ( ) : string

Gets a display path for the node.

GetDisplayPath ( int maxLength, char seperator ) : string

Gets a display path for the node.

GetDisplayText ( ) : string

Gets a display text for the node.

IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool
MemberwiseClone ( ) : object

Makes a copy of the node and all children.

ReportEvent ( ISystemContext context, IFilterTarget e ) : void

Sets the flag which indicates whether event are being monitored for the instance and its children.

Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void

Saves object in an binary stream.

Save ( ISystemContext context, XmlEncoder encoder ) : void

Saves the attributes from the stream.

SetMinimumSamplingInterval ( ISystemContext context, double minimumSamplingInterval ) : void

Sets the minimum sampling interval for the node an all of its child variables..

Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void

Updates the specified context.

Update ( ISystemContext context, SimpleAttributeOperandCollection fields, EventFieldList e ) : void

Initializes the instance from an event notification.

This method creates components based on the browse paths in the event field and sets the NodeId or Value based on values in the event notification.

Update ( ISystemContext context, XmlDecoder decoder ) : void

Updates the attributes from the stream.

Méthodes protégées

Méthode Description
BaseInstanceState ( NodeClass nodeClass, NodeState parent ) : System

Initializes the instance with its defalt attribute values.

Export ( ISystemContext context, Node node ) : void

Exports a copy of the node to a node table.

GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId

Returns the id of the default type definition node for the instance.

Initialize ( ISystemContext context, NodeState source ) : void

Initializes the instance from another instance.

PopulateBrowser ( ISystemContext context, NodeBrowser browser ) : void

Populates the browser with references that meet the criteria.

Private Methods

Méthode Description
GetNonNullText ( NodeState node ) : string

Returns non-null text for the node.

Method Details

BaseInstanceState() protected méthode

Initializes the instance with its defalt attribute values.
protected BaseInstanceState ( NodeClass nodeClass, NodeState parent ) : System
nodeClass NodeClass
parent NodeState
Résultat System

Export() protected méthode

Exports a copy of the node to a node table.
protected Export ( ISystemContext context, Node node ) : void
context ISystemContext The context.
node Node The node to update with the values from the instance.
Résultat void

GetAttributeValue() public méthode

public GetAttributeValue ( FilterContext context, Opc.Ua.NodeId typeDefinitionId, IList relativePath, uint attributeId, NumericRange indexRange ) : object
context FilterContext
typeDefinitionId Opc.Ua.NodeId
relativePath IList
attributeId uint
indexRange NumericRange
Résultat object

GetAttributesToSave() public méthode

Returns a mask which indicates which attributes have non-default value.
public GetAttributesToSave ( ISystemContext context ) : AttributesToSave
context ISystemContext The context for the system being accessed.
Résultat AttributesToSave

GetDefaultTypeDefinitionId() public méthode

Returns the id of the default type definition node for the instance.
public GetDefaultTypeDefinitionId ( ISystemContext context ) : Opc.Ua.NodeId
context ISystemContext
Résultat Opc.Ua.NodeId

GetDefaultTypeDefinitionId() protected méthode

Returns the id of the default type definition node for the instance.
protected GetDefaultTypeDefinitionId ( Opc.Ua.NamespaceTable namespaceUris ) : Opc.Ua.NodeId
namespaceUris Opc.Ua.NamespaceTable The namespace uris.
Résultat Opc.Ua.NodeId

GetDisplayPath() public méthode

Gets a display path for the node.
public GetDisplayPath ( ) : string
Résultat string

GetDisplayPath() public méthode

Gets a display path for the node.
public GetDisplayPath ( int maxLength, char seperator ) : string
maxLength int
seperator char
Résultat string

GetDisplayText() public méthode

Gets a display text for the node.
public GetDisplayText ( ) : string
Résultat string

Initialize() protected méthode

Initializes the instance from another instance.
protected Initialize ( ISystemContext context, NodeState source ) : void
context ISystemContext
source NodeState
Résultat void

IsTypeOf() public méthode

public IsTypeOf ( FilterContext context, Opc.Ua.NodeId typeDefinitionId ) : bool
context FilterContext
typeDefinitionId Opc.Ua.NodeId
Résultat bool

MemberwiseClone() public méthode

Makes a copy of the node and all children.
public MemberwiseClone ( ) : object
Résultat object

PopulateBrowser() protected méthode

Populates the browser with references that meet the criteria.
protected PopulateBrowser ( ISystemContext context, NodeBrowser browser ) : void
context ISystemContext The context for the system being accessed.
browser NodeBrowser The browser to populate.
Résultat void

ReportEvent() public méthode

Sets the flag which indicates whether event are being monitored for the instance and its children.
public ReportEvent ( ISystemContext context, IFilterTarget e ) : void
context ISystemContext The system context.
e IFilterTarget The event to report.
Résultat void

Save() public méthode

Saves object in an binary stream.
public Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void
context ISystemContext The context user.
encoder BinaryEncoder The encoder to write to.
attributesToSave AttributesToSave The masks indicating what attributes to write.
Résultat void

Save() public méthode

Saves the attributes from the stream.
public Save ( ISystemContext context, XmlEncoder encoder ) : void
context ISystemContext The context for the system being accessed.
encoder XmlEncoder The encoder wrapping the stream to write.
Résultat void

SetMinimumSamplingInterval() public méthode

Sets the minimum sampling interval for the node an all of its child variables..
public SetMinimumSamplingInterval ( ISystemContext context, double minimumSamplingInterval ) : void
context ISystemContext The context.
minimumSamplingInterval double The minimum sampling interval.
Résultat void

Update() public méthode

Updates the specified context.
public Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void
context ISystemContext The context.
decoder BinaryDecoder The decoder.
attibutesToLoad AttributesToSave The attributes to load.
Résultat void

Update() public méthode

Initializes the instance from an event notification.
This method creates components based on the browse paths in the event field and sets the NodeId or Value based on values in the event notification.
public Update ( ISystemContext context, SimpleAttributeOperandCollection fields, EventFieldList e ) : void
context ISystemContext The context.
fields SimpleAttributeOperandCollection The fields selected for the event notification.
e EventFieldList The event notification.
Résultat void

Update() public méthode

Updates the attributes from the stream.
public Update ( ISystemContext context, XmlDecoder decoder ) : void
context ISystemContext The context for the system being accessed.
decoder XmlDecoder The decoder wrapping the stream to read.
Résultat void