smia.behaviours.specific_handle_behaviours.handle_aas_related_svc_behaviour module¶
- class smia.behaviours.specific_handle_behaviours.handle_aas_related_svc_behaviour.HandleAASRelatedSvcBehaviour(agent_object, received_acl_msg)[source]¶
Bases:
OneShotBehaviourThis class implements the behaviour that handles all the service requests that the SMIA has received. This request can arrive from an FIPA-ACL message as a Inter AAS Interaction or from the AAS Core as an Intra AAS Interaction message. This is a OneShotBehaviour because it handles an individual service request and then kills itself.
- async handle_asset_agent_related_service()[source]¶
This method implements the logic to handle the asset- or agent-related type services.
- async handle_asset_agent_related_svc_request()[source]¶
This method handles an Asset Related Service request. These services are part of I4.0 Application Component (application relevant).
- async handle_aas_service()[source]¶
This method implements the logic to handle the AAS type services.
- async handle_aas_svc_query_ref()[source]¶
This method implements the logic to handle the Query-Ref performatives of AAS type services.
- async handle_aas_discovery_svc()[source]¶
This method implements the logic to handle the AAS type services of Discovery ServiceTypes.
- async handle_aas_infrastructure_service()[source]¶
This method implements the logic to handle the Infrastructure services of AAS type services.
- async handle_query_if()[source]¶
This method handle Query-If service requests. This request is received when the DT is asked about information related to a service.
- async handle_aas_services_request()[source]¶
This method handles AAS Services. These services serve for the management of asset-related information through a set of infrastructure services provided by the AAS itself. These include Submodel Registry Services (to list and register submodels), Meta-information Management Services (including Classification Services, to check if the interface complies with the specifications; Contextualization Services, to check if they belong together in a context to build a common function; and Restriction of Use Services, divided between access control and usage control) and Exposure and Discovery Services (to search for submodels or asset related services).
- async handle_aas_infrastructure_svc_request()[source]¶
This method handles AAS Infrastructure Services. These services are part of I4.0 Infrastructure Services (Systemic relevant). They are necessary to create AASs and make them localizable and are not offered by an AAS, but by the platform (computational infrastructure). These include the AAS Create Service (for creating AASs with unique identifiers), AAS Registry Services (for registering AASs) and AAS Exposure and Discovery Services (for searching for AASs).
- async send_response_msg_to_sender(performative, service_params)[source]¶
This method creates and sends a FIPA-ACL message with the given serviceParams and performative.
- Parameters:
performative (str) – performative according to FIPA-ACL standard.
service_params (dict) – JSON with the serviceParams to be sent in the message.