machines
Module¶
This module contains the information about the different types of machines.
Every machine specific knowledge should be put in this file. Machine specific knowledge is, for example:
- the number of needles a machine supports
- whether it is single or double bed
- how many colors are supported
- the name of the machine
-
class
AYABInterface.machines.
Machine
[source]¶ Bases:
object
The type of the machine.
This is an abstract base class and some methods need to be overwritten.
-
NAME
= None¶ the name of the machine
-
__eq__
(other)[source]¶ Equavalent of
self == other
.Return type: bool Returns: whether this object is equal to the other object
-
__weakref__
¶ list of weak references to the object (if defined)
-
name
¶ The identifier of the machine.
-
needle_positions_to_bytes
(needle_positions)[source]¶ Convert the needle positions to the wire format.
This conversion is used for The cnfLine Message.
Parameters: needle_positions¶ – an iterable over needle_positions
of lengthnumber_of_needles
Return type: bytes
-
right_end_needle
¶ The index of the rightmost needle.
Return type: int Returns: left_end_needle
+number_of_needles
-1
-
-
class
AYABInterface.machines.
KH9XXSeries
[source]¶ Bases:
AYABInterface.machines.Machine
The base class for the KH9XX series.
-
class
AYABInterface.machines.
CK35
[source]¶ Bases:
AYABInterface.machines.Machine
The machine type for the Brother CK-35.
-
class
AYABInterface.machines.
KH900
[source]¶ Bases:
AYABInterface.machines.KH9XXSeries
The machine type for the Brother KH-900.
-
class
AYABInterface.machines.
KH910
[source]¶ Bases:
AYABInterface.machines.KH9XXSeries
The machine type for the Brother KH-910.
-
class
AYABInterface.machines.
KH930
[source]¶ Bases:
AYABInterface.machines.KH9XXSeries
The machine type for the Brother KH-930.
-
class
AYABInterface.machines.
KH950
[source]¶ Bases:
AYABInterface.machines.KH9XXSeries
The machine type for the Brother KH-950.
-
class
AYABInterface.machines.
KH965
[source]¶ Bases:
AYABInterface.machines.KH9XXSeries
The machine type for the Brother KH-965.
-
class
AYABInterface.machines.
KH270
[source]¶ Bases:
AYABInterface.machines.Machine
The machine type for the Brother KH-270.