def __init__(self, knitting_pattern, machine):
self._machine = machine<EOL>self._communication = None<EOL>self._rows = knitting_pattern.rows_in_knit_order()<EOL>self._knitting_pattern = knitting_pattern<EOL>
Create a new interaction object.

        :param knitting_pattern: a
          :class:`~knittingpattern.KnittingPattern.KnittingPattern`
        :param AYABInterface.machines.Machine machine: the machine to knit on