Documentation Labeling Engine¶
-
class
motey.capabilityengine.capability_engine.
CapabilityEngine
(logger, capability_repository, communication_manager)[source]¶ This module provides a connection endpoint for third party apps like the hardware layer to add new capabilities.
-
parse_capability
(data)[source]¶ Parse a JSON string with capability data and transform them into an array with capability models
Parameters: - data – the data that should be parsed
- data – str
Returns: an array with capability models or an empty array if something went wrong
-
perform_add_capability
(data)[source]¶ Adds a capability entry to the database.
Parameters: data (str) – the capability entry which should be added. The entry must match the motey.models.schemas.capability_json_schema
-