Details
The AYAB Data & Configuration subsystem is responsible for managing and transforming data critical to the operation of AYAB knitting machines. It encompasses the definition of machine models, the handling of knitting pattern data, and utility functions for data manipulation.
AYABInterface.machines.Machine
Defines the core data model for AYAB knitting machines, including parameters like the number of needles, end needle positions, and unique identifiers. It also provides methods for retrieving and comparing machine configurations. This component is fundamental as it provides the foundational specifications for any machine the system interacts with.
AYABInterface.needle_positions.NeedlePositions
Encapsulates and validates the structured data representing needle positions for knitting patterns. It ensures the integrity and correctness of this critical pattern data, which is the low-level instruction set for the machine.
AYABInterface.convert.ColorConverter
Implements the logic for transforming high-level color data (representing knitting patterns) into low-level, machine-interpretable needle position data. This is a key data transformation utility, bridging the gap between abstract pattern representation and concrete machine commands.
AYABInterface.utils
Provides a collection of general-purpose utility functions that support various operations related to data processing and configuration management within the AYAB Data & Configuration subsystem, such as counting colors or other common data manipulations. This component supports the other components by offering reusable helper functions.