class documentation

class Resource(UaObject, IdentificationMixin[ResourceIdentification], ParentMixin['Resources'], AttributesMixin[ResourceAttributes]):

Constructor: Resource(definition)

View In Hierarchy

Base class for all resources.

Method __init__ Cooperative constructor.
Async Method lifecycle_resource Initialize the OPC UA variables based on the definition.
Property resource_class Return the class of the resource, i.e. 'Cab', 'Trailer' etc.
Async Method _get_definition Undocumented
Async Method _write_identification Undocumented
Instance Variable _definition Undocumented
Instance Variable _resource_class Undocumented
def __init__(self, *, definition: ResourceDefinition):

Cooperative constructor.

@lifecycle(after=AttributesMixin.lifecycle_attributes)
async def lifecycle_resource(self) -> AsyncGenerator[None]:

Initialize the OPC UA variables based on the definition.

@property
resource_class: str =

Return the class of the resource, i.e. 'Cab', 'Trailer' etc.

@override
async def _get_definition(self) -> UaObjectDefinition:

Undocumented

@override
async def _write_identification(self):

Undocumented

_definition =

Undocumented

_resource_class: str =

Undocumented