class documentation

class NamedBinding:

Known subclasses: ros2.server.bindings._base.AwaitedBinding

View In Hierarchy

A declaration with a name, which becomes a browse name.

Class Variable kind What the messages call this declaration, such as "Monitoring Binding".
Instance Variable name The Binding's name.
Method _require_a_machinery_group Refuse a group that is not one of the Machinery Monitoring sub-structures.
Method _require_a_name_machinery_monitoring_leaves_free Refuse a name OPC 40001-1 keeps for a sub-structure of a Machine's or Component's Monitoring.
Method _require_a_name_that_can_be_browsed Refuse an empty name or one that breaks the naming rule, which opensmi would only refuse at start.
Method _require_a_subclass Refuse an implementation class that is not a subclass of the stock one.
Method _require_new_names_that_follow_the_rule Refuse a rename value that breaks the naming rule. It is taken as is, never converted.
kind: ClassVar[str] =

What the messages call this declaration, such as "Monitoring Binding".

name: str =

The Binding's name.

def _require_a_machinery_group(self, group: str | None):

Refuse a group that is not one of the Machinery Monitoring sub-structures.

Raises
DeclarationErrorWhen group is given and is not Status, Health, Process or Consumption.
def _require_a_name_machinery_monitoring_leaves_free(self):

Refuse a name OPC 40001-1 keeps for a sub-structure of a Machine's or Component's Monitoring.

For the kinds whose name is a top-level node of that Monitoring. The match is exact, so StatusCode is free, and a name below the top level is not affected.

Raises
DeclarationErrorWhen the name is Status, Health, Process or Consumption.
def _require_a_name_that_can_be_browsed(self):

Refuse an empty name or one that breaks the naming rule, which opensmi would only refuse at start.

Raises
BindingNameErrorWhen the name is empty or breaks the rule. The message suggests a name.
def _require_a_subclass(self, given: object, stock: type, why: str):

Refuse an implementation class that is not a subclass of the stock one.

Raises
ImplementationClassErrorWhen given is not a class derived from stock.
def _require_new_names_that_follow_the_rule(self, option: str, rename: Mapping[str, str]):

Refuse a rename value that breaks the naming rule. It is taken as is, never converted.

Raises
BindingNameErrorWhen a new name is not a valid browse name.