smia_ism.logic.acl_open_api_services module¶
- class smia_ism.logic.acl_open_api_services.ACLOpenAPIServices[source]¶
Bases:
objectThis class implements the logic of all the ACL-OpenAPI services.
- static register_smia_instance(id, asset: dict, aasID, status, startedTimeStamp, smiaVersion)[source]¶
This method registers the smia instance in the SMIA KB.
- static register_css_elements(capabilities: list[dict], skills: list[dict])[source]¶
This method registers CSS elements (capabilities and skills) in the SMIA KB.
- static get_asset_adminitration_shell_by_id(aas_id)[source]¶
This method gets the administration shell from the AAS Repository by its identifier.
- Parameters:
aas_id (str) – The AAS identifier.
- Returns:
The AAS object from the AAS Repository.
- Return type:
object
- ACLOpenAPIServicesMap = {'GetAllAssetIDByCapability': <staticmethod(<function ACLOpenAPIServices.get_assets_ids_of_capability>)>, 'GetAssetAdministrationShellById': <staticmethod(<function ACLOpenAPIServices.get_asset_adminitration_shell_by_id>)>, 'GetAssetIDBySMIAInstanceID': <staticmethod(<function ACLOpenAPIServices.get_asset_id_by_smia_instance>)>, 'GetSMIAInstanceIDByAssetID': <staticmethod(<function ACLOpenAPIServices.get_smia_instance_by_asset_id>)>, 'RegisterCSSElements': <staticmethod(<function ACLOpenAPIServices.register_css_elements>)>, 'RegisterSMIAInstance': <staticmethod(<function ACLOpenAPIServices.register_smia_instance>)>}¶
This object maps the service identifiers with its associated execution methods