smia.behaviours.negotiating_behaviour module

class smia.behaviours.negotiating_behaviour.NegotiatingBehaviour(agent_object)[source]

Bases: CyclicBehaviour

This class implements the behaviour that handles the negotiation requests made by other standardized SMIAs through ACL messages in the I4.0 System.

async on_start()[source]

This method implements the initialization process of this behaviour.

async run()[source]

This method implements the logic of the behaviour.

async check_received_capability_request_data(cap_req_data)[source]

This method checks whether the data received contains the necessary information to be able to execute the agent capability. If an error occurs, it throws a CapabilityDataError exception.

Parameters:

cap_req_data – (dict): all the information about the agent capability request