Source code for smia.utilities.fipa_acl_info

[docs] class FIPAACLInfo: """ This class contains the values related to FIPA-ACL standard. """ # Performative values FIPA_ACL_PERFORMATIVE_CFP = 'CallForProposal' FIPA_ACL_PERFORMATIVE_INFORM = 'Inform' FIPA_ACL_PERFORMATIVE_REQUEST = 'Request' FIPA_ACL_PERFORMATIVE_PROPOSE = 'Propose' FIPA_ACL_PERFORMATIVE_FAILURE = 'Failure' FIPA_ACL_PERFORMATIVE_QUERY_IF = 'Query-If' # TODO add more if they are needed # TODO se han aƱadido estos pero todavia no se utilizan: FIPA_ACL_PERFORMATIVE_ACCEPT_PROPOSAL = 'AcceptProposal' FIPA_ACL_PERFORMATIVE_REJECT_PROPOSAL = 'RejectProposal' FIPA_ACL_PERFORMATIVE_AGREE = 'Agree' FIPA_ACL_PERFORMATIVE_CONFIRM = 'Confirm' FIPA_ACL_PERFORMATIVE_NOT_UNDERSTOOD = 'NotUnderstood' FIPA_ACL_PERFORMATIVE_REFUSE = 'Refuse' # Ontology values FIPA_ACL_ONTOLOGY_SVC_REQUEST = 'SvcRequest' FIPA_ACL_ONTOLOGY_SVC_RESPONSE = 'SvcResponse' FIPA_ACL_ONTOLOGY_CAPABILITY_REQUEST = 'CapabilityRequest' FIPA_ACL_ONTOLOGY_CAPABILITY_CHECKING = 'CapabilityChecking' FIPA_ACL_ONTOLOGY_CAPABILITY_RESPONSE = 'CapabilityResponse' FIPA_ACL_ONTOLOGY_SVC_NEGOTIATION = 'Negotiation'
[docs] class ServiceTypes: """ This class contains all service types defined in the Functional View of RAMI 4.0. """ ASSET_RELATED_SERVICE = 'AssetRelatedService' AAS_INFRASTRUCTURE_SERVICE = 'AASInfrastructureService' AAS_SERVICE = 'AASservice' SUBMODEL_SERVICE = 'SubmodelService' CSS_RELATED_SERVICE = 'CSSRelatedService' # TODO duda con este ya que contiene el concepto de service dentro, y no es lo mismo
[docs] class ACLJSONSchemas: """This class contains all the JSON schemas related to ACL messages sent between SMIA agents.""" JSON_SCHEMA_AAS_MODEL_REFERENCE = { "type": "object", "properties": { "keys": { "type": "array", "items": { "type": "object", "properties": { "type": {"type": "string"}, "value": {"type": "string"} }, "required": ["type", "value"] } } }, "required": ["keys"] } JSON_SCHEMA_SUBMODEL_SERVICE_REQUEST = { "type": "object", "properties": { "ModelReference": JSON_SCHEMA_AAS_MODEL_REFERENCE, "ExternalReference": { "type": "string" } }, "oneOf": [ {"required": ["ModelReference"]}, {"required": ["ExternalReference"]} ] } JSON_SCHEMA_ASSET_SERVICE_REQUEST = { "type": "object", "properties": { "serviceParameterValues": { "type": "object", "additionalProperties": {"type": "string"} }, "ModelReference": JSON_SCHEMA_AAS_MODEL_REFERENCE, }, "required": ["ModelReference"] } JSON_SCHEMA_CAPABILITY_REQUEST = { "type": "object", "properties": { "capabilityName": {"type": "string"}, "skillName": {"type": "string"}, "skillParameterValues": { "type": "object", "additionalProperties": { "type": "string" } }, "skillInterfaceName": {"type": "string"} }, "required": ["capabilityName"] }