smia.css_ontology.css_operations module¶
- async smia.css_ontology.css_operations.capability_checking(agent_object, received_css_json)[source]¶
This method executes the Capability Checking operation. In this step, the capabilities offered by this SMIA are matched against the received request. In the future, reallocation logic can be applied to infer the capacity request received, or advanced techniques such as auto-discovery can be adopted to discover capacities automatically.
- Parameters:
agent_object (smia.agents.SMIAAgent) – SMIA agent object.
received_css_json (dict) – received CSS data within the SMIA-ACL body message.
- Returns:
boolean with the result of the checking and, if false, reason of the fail
- Return type:
bool, str
- async smia.css_ontology.css_operations.feasibility_checking(agent_object, received_css_json)[source]¶
- This method executes the Feasibility Checking operation. The objective of this step is to ensure that the necessary
conditions hold so that it is feasible for the selected resource to perform its task. These conditions can be pre-conditions, post-conditions or invariants (hold over the entire duration).
- Parameters:
agent_object (smia.agents.SMIAAgent) – SMIA agent object.
received_css_json (dict) – received CSS data within the SMIA-ACL body message.
- Returns:
boolean with the result of the checking and, if false, reason of the fail
- Return type:
bool, str