Click or drag to resize

Method

Home
Method

Methods are "lightweight" functions, whose scope is bounded by an owning Object, similar to the methods of a class in object-oriented programming or an owning ObjectType, similar to static methods of a class. Methods are invoked by a client, proceed to completion on the server and return the result to the client. The lifetime of the Methods invocation instance begins when the client calls the Method and ends when the result is returned.

While Methods may affect the state of the owning Object, they have no explicit state of their own. In this sense, they are stateless. Methods can have a varying number of input arguments and return resultant arguments. Each Method is described by a Node of the Method node class. This Node contains the metadata that identifies the Methods arguments and describes its behavior.

MethodPropertyGridDescription
Method Property Grid
Figure 1: Method property grid

Method properties:

  1. Max Cardinality - this attribute indicates the maximum number of possibly existing instances of this element.

  2. Min Cardinality - this attribute indicates the minimum number of possibly existing instances of this element. If the element has minimal cardinality greater than 0, it is possible to check that it exists in the instantiated nodes.

  3. Modeling Rule - dependent on the value of these properties specified for the components of a type they are used to create appropriate instances while the parent type is instantiated in the address space. The default value is Mandatory. In this case the component is always created with the values of the attributes derived from the inheritance chain. If the value is None it indicates that this node only belongs to the type and is not used to create an instance while the parent type is instantiated. If the node is not a type component the value of this property is ignored.

  4. Preserve Default Attributes - a value indicating whether to preserve default attributes.

  5. Type Definition - the type of this instance pointed out by the HasTypeDefinition reference.

  6. Default value – the default value of the Type Definition.

  7. Is Empty - indicates if the Type Definition is empty.

  8. Name – the name of the TypeDefinition.

  9. Namespace – a namespace that qualifies the name of the TypeDefinition.

  10. Non Executable - the Executable Attribute indicates if the Method is currently executable (“False” means not executable, “True” means executable). The Executable Attribute does not take any user access rights into account, i.e. although the Method is executable this may be restricted to a certain user / user group.

  11. Browse Name - a name used in the information model. The validator will create the BrowseName automatically from the SymbolicName. The BrowseName is qualified by the namespace used for the SymbolicName.

  12. Description – optionally, a vendor specific description is provided. The validator automatically creates a generic Description from the BrowseName and NodeClass.

  13. Key – an optional key that can be used to look up the Description for other locales in a resource DB.

  14. Value – the value of the Description attribute for the Node.

  15. Display Name – a human readable name for the Node. The validator automatically creates the DisplayName from the BrowseName.

  16. Key – an optional key that can be used to look up the display name for other locales in a resource DB.

  17. Value – the value of the Display Name.

  18. IsDeclaration - this flag indicates that the Node is defined elsewhere and no code will be generated. Nodes that are declarations do not need to be completely defined. They only need to have the information required to generate code for nodes that reference it (e.g. the BaseType).

  19. StringId - an alternate unique identifier for the node. It is used instead of the NumericId if it is specified in the CSV input file.

  20. Symbolic Name - identifies the Node within the ModelDesign or within the containing Node. The SymbolicName should always be specified. It is used to create the BrowseName and SymbolicId if they are not specified.

  21. Is Empty - indicates whether the Symbolic Name is empty.

  22. Name – a name, which is the part of the Symbolic Name.

  23. Namespace – a namespace, which qualifies the Name from the Symbolic Name.

  24. Write access - a bit mask that indicates, which attributes are writeable. Optionally the WriteMask Attribute can be provided. If the WriteMask Attribute is provided, it shall set all Attributes to not writeable that are not said to be vendor-specific. For example, the Description Attribute may be set to writeable since a Server may provide a server-specific description for the Node. The NodeId shall not be writeable, because it is defined for each Node in specification.