knitout_interpreter.knitout_operations.carrier_instructions module
Knitout Operations that involve the yarn inserting system
- class knitout_interpreter.knitout_operations.carrier_instructions.Yarn_Carrier_Instruction(instruction_type, carrier, comment)[source]
Bases:
Knitout_Instruction
- class knitout_interpreter.knitout_operations.carrier_instructions.Hook_Instruction(instruction_type, carrier, comment)[source]
Bases:
Yarn_Carrier_Instruction
- class knitout_interpreter.knitout_operations.carrier_instructions.In_Instruction(carrier, comment=None)[source]
Bases:
Yarn_Carrier_Instruction
- execute(machine_state)[source]
Execute the instruction on the machine state.
- Parameters:
machine_state (Knitting_Machine) – The machine state to update.
- Returns:
True if the process completes an update.
- Return type:
- class knitout_interpreter.knitout_operations.carrier_instructions.Inhook_Instruction(carrier_set, comment=None)[source]
Bases:
Hook_Instruction
- execute(machine_state)[source]
Execute the instruction on the machine state.
- Parameters:
machine_state (Knitting_Machine) – The machine state to update.
- Returns:
True if the process completes an update.
- Return type:
- class knitout_interpreter.knitout_operations.carrier_instructions.Releasehook_Instruction(carrier, comment=None, preferred_release_direction=None)[source]
Bases:
Hook_Instruction
- property preferred_release_direction: Carriage_Pass_Direction
Get the preferred direction to release this carrier.
- Returns:
The preferred direction to release this carrier in. Will default to leftward release.
- execute(machine_state)[source]
Execute the instruction on the machine state.
- Parameters:
machine_state (Knitting_Machine) – The machine state to update.
- Returns:
True if the process completes an update.
- Return type:
- class knitout_interpreter.knitout_operations.carrier_instructions.Out_Instruction(carrier, comment=None)[source]
Bases:
Yarn_Carrier_Instruction
- execute(machine_state)[source]
Execute the instruction on the machine state.
- Parameters:
machine_state (Knitting_Machine) – The machine state to update.
- Returns:
True if the process completes an update.
- Return type:
- class knitout_interpreter.knitout_operations.carrier_instructions.Outhook_Instruction(carrier_set, comment=None)[source]
Bases:
Hook_Instruction
- execute(machine_state)[source]
Execute the instruction on the machine state.
- Parameters:
machine_state (Knitting_Machine) – The machine state to update.
- Returns:
True if the process completes an update.
- Return type: