class documentation

class SpatialObjectMixin:

View In Hierarchy

Mixin for BaseMachineryItem that has an OPC UA SpatialObject.

Only one spatial object per machinery item is supported.

The spatial object is not created automatically. Call _init_spatial_object with a SpatialObject during component initialization.

Property spatial_object The spatial object that belongs to this object. Read-only property.
Async Method _init_spatial_object Set up the given spatial_object for this object.
Instance Variable __spatial_object Undocumented
@property
spatial_object: SpatialObject =

The spatial object that belongs to this object. Read-only property.

Only available after _init_spatial_object was called.

async def _init_spatial_object(self, spatial_object: SpatialObject):

Set up the given spatial_object for this object.

If the spatial object is not initialized yet, a new OPC UA node is created below Monitoring, else the existing spatial object is reused.

Parameters
spatial_object:SpatialObjectSpatial object of this object.
__spatial_object: SpatialObject | None =

Undocumented