class documentation

class Resources(UaObjectContainer[Resource], ParentMixin['BaseMachineryItem']):

Constructor: Resources()

View In Hierarchy

Management of resources.

Method __init__ Initialize the resources collection synchronously.
Async Method add Add a new resource according to the given definition.
Method get_all Get all resources with the given resource_class.
Async Method _get_definition Undocumented

Inherited from UaObjectContainer:

Method __contains__ Whether an object with given name exists in this container.
Method __getattr__ Return a child object by attribute name.
Method __getitem__ Get a UaObject by the given name.
Method __iter__ Iterate over all contained UaObject.
Method __len__ Return the number of contained UaObject.
Method __setitem__ Add a child object by given name.
Instance Variable _children Undocumented
def __init__(self):

Initialize the resources collection synchronously.

async def add(self, definition: ResourceDefinition) -> Resource:

Add a new resource according to the given definition.

def get_all(self, *, resource_class: str) -> Iterable[Resource]:

Get all resources with the given resource_class.

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

Undocumented