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 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.