knitout_interpreter.knitout_execution_structures package
knitout_execution_structures: Data structures for organizing knitout execution.
This module provides specialized data structures that organize knitout instructions into meaningful execution units. These structures bridge the gap between individual knitout instructions and the actual execution patterns on knitting machines.
- Key Concepts:
- Carriage Pass: A sequence of instructions that can be executed in a single pass of the knitting machine carriage.
Instructions in a carriage pass share common properties like direction, racking, and carrier usage.
Organization: Instructions are automatically grouped into carriage passes based on machine constraints and execution efficiency. This organization is crucial for accurate timing analysis and machine operation.
- Core Components:
Carriage_Pass: Main data structure representing a carriage pass
Pass organization and merging logic
Execution timing and analysis capabilities
Needle range and width calculations
- Machine Execution Model:
Real knitting machines operate in carriage passes rather than individual instructions. A carriage pass represents one sweep of the carriage across the needle bed, during which multiple operations can occur simultaneously.
Submodules
- knitout_interpreter.knitout_execution_structures.Carriage_Pass module
Carriage_Pass
Carriage_Pass.all_needle_rack
Carriage_Pass.rack
Carriage_Pass.carrier_set
Carriage_Pass.xfer_pass
Carriage_Pass.instruction_set()
Carriage_Pass.rightward_sorted_needles()
Carriage_Pass.leftward_sorted_needles()
Carriage_Pass.sorted_needles()
Carriage_Pass.instructions_by_needles()
Carriage_Pass.carriage_pass_range()
Carriage_Pass.rack_instruction()
Carriage_Pass.direction
Carriage_Pass.needles
Carriage_Pass.first_instruction
Carriage_Pass.last_instruction
Carriage_Pass.last_needle
Carriage_Pass.contains_instruction_type()
Carriage_Pass.add_instruction()
Carriage_Pass.compatible_with_pass_type()
Carriage_Pass.can_add_instruction()
Carriage_Pass.can_merge_pass()
Carriage_Pass.merge_carriage_pass()
Carriage_Pass.execute()
Carriage_Pass.__str__()
Carriage_Pass.__list__()
Carriage_Pass.__len__()
Carriage_Pass.__repr__()
Carriage_Pass.__iter__()
Carriage_Pass.__getitem__()
Carriage_Pass.__hash__()