# 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 whether this object is equal to the other object
__hash__()[source]

Return the hash of this object.

__repr__()[source]

Return this object as a string.

__weakref__

list of weak references to the object (if defined)

is_ck35()[source]

Whether this machine is a Brother CK-35.

Return type: bool
is_kh270()[source]

Whether this machine is a Brother KH-270.

Return type: bool
is_kh900()[source]

Whether this machine is a Brother KH-910.

Return type: bool
is_kh910()[source]

Whether this machine is a Brother KH-900.

Return type: bool
is_kh930()[source]

Whether this machine is a Brother KH-930.

Return type: bool
is_kh950()[source]

Whether this machine is a Brother KH-950.

Return type: bool
is_kh965()[source]

Whether this machine is a Brother KH-965.

Return type: bool
left_end_needle

The index of the leftmost needle.

Return type: int 0
name

The identifier of the machine.

needle_positions

The different needle positions.

Return type: tuple
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 length number_of_needles bytes
number_of_needles

The number of needles of this machine.

Return type: int
right_end_needle

The index of the rightmost needle.

Return type: int left_end_needle + number_of_needles - 1
class AYABInterface.machines.KH9XXSeries[source]

The base class for the KH9XX series.

needle_positions

The different needle positions.

Return type: tuple the needle positions are “B” and “D”
number_of_needles

The number of needles on this machine.

Return type: int 200. The KH9XX series has 200 needles.
class AYABInterface.machines.CK35[source]

The machine type for the Brother CK-35.

needle_positions

The different needle positions.

Return type: tuple the needle positions are “B” and “D”
number_of_needles

The number of needles on this machine.

Return type: int 200. The KH9XX series has 200 needles.
class AYABInterface.machines.KH900[source]

The machine type for the Brother KH-900.

class AYABInterface.machines.KH910[source]

The machine type for the Brother KH-910.

class AYABInterface.machines.KH930[source]

The machine type for the Brother KH-930.

class AYABInterface.machines.KH950[source]

The machine type for the Brother KH-950.

class AYABInterface.machines.KH965[source]

The machine type for the Brother KH-965.

class AYABInterface.machines.KH270[source]

The machine type for the Brother KH-270.

needle_positions

The different needle positions.

Return type: tuple the needle positions are “B” and “D”
number_of_needles

The number of needles on this machine.

Return type: int 200. The KH9XX series has 200 needles.
AYABInterface.machines.get_machines()[source]

Return a list of all machines.

Return type: list a list of Machines